pub fn encode<T>(pdu: &T, dst: &mut [u8]) -> EncodeResult<usize>where T: Encode + ?Sized,
Encodes the given PDU in-place into the provided buffer and returns the number of bytes written.