encode_lp_reliable

Function encode_lp_reliable 

Source
pub fn encode_lp_reliable(
    fragment: &[u8],
    sequence: u64,
    frag_info: Option<(u64, u64)>,
    acks: &[u64],
) -> Bytes
Expand description

Encode a reliability-enabled LpPacket with TxSequence, optional fragmentation, and piggybacked Acks.

frag_info is Some((frag_index, frag_count)) for fragmented packets. acks contains TxSequences to acknowledge.