Function lk_serialize_ref

Source
pub fn lk_serialize_ref(
    p: &dyn Point,
    mode: IOMode,
    out: &mut dyn FnMut(ByteSegments<'_>) -> LkResult<()>,
) -> LkResult<()>
Expand description

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.