Skip to main content

pack_bytes

Function pack_bytes 

Source
pub fn pack_bytes(payload: &[u8]) -> Vec<u8> ⓘ
Expand description

Pack a byte string as a top-level BYTES element.

0x01, the payload with every 0x00 written as 0x00 0xff, and a terminating 0x00. No length prefix.