Function encode

Source
pub fn encode<T>(pdu: &T, dst: &mut [u8]) -> EncodeResult<usize>
where T: Encode + ?Sized,
Expand description

Encodes the given PDU in-place into the provided buffer and returns the number of bytes written.