Module point

Source
Expand description

creating points

Enums§

CheckHash
IOMode
Signals the source of a point.

Functions§

as_netarc
as_netbox
lk_datapoint
create a datapoint with upto MAX_CONTENT_SIZE bytes
lk_datapoint_ref
like lk_datapoint but keeps it on the stack in rust enum format.
lk_deserialize
lk_deserialize_arc
lk_deserialize_len
Determine the length required for lk_deserialize to succeed - expects at least [consts::MIN_POINT_LEN] bytes
lk_deserialize_ref
lk_keypoint
create a keypoint, i.e. a signed lk_linkpoint
lk_keypoint_ref
like lk_keypoint but keeps it on the stack in rust enum format.
lk_linkpoint
create a new linkpoint PointBox
lk_linkpoint_ref
like lk_linkpoint but keeps it on the stack in rust enum format.
lk_point_ref
utility function to build either lk_keypoint or lk_linkpoint depending on the optional key argument
lk_serialize
lk_serialize_ref
Writes any form of Point into the binary point format When reading you need to indicate what xfields you’re accepting with mask [XHeader::KEEP_COMMON] and friends Mode does additional checks - specifically in IOMode::Transmit it rejects PRIVATE group, increments hop, and clears XFlags::Storage.