pub fn encode(kind: u8, request_id: u16, content: &[u8]) -> Vec<u8> ⓘ
One record, padded to a multiple of 8 as the specification recommends.