encode_lp_with_headers

Function encode_lp_with_headers 

Source
pub fn encode_lp_with_headers(fragment: &[u8], headers: &LpHeaders) -> Bytes
Expand description

Encode an LpPacket with optional header fields.

LP header fields are written in increasing TLV-TYPE order as required by the spec.