pub fn encode_with_offset( buf: impl AsRef<[u8]>, offset: usize, ) -> (Vec<u8>, usize)
Encode a bitfield at a specific offset