fn encode_extensions(extensions: &[u8], buf: &mut impl BufMut)
Encode extension bytes to the buffer (just writes the raw bytes).