Skip to main content

write_bytes

Function write_bytes 

Source
pub fn write_bytes(w: &mut impl Write, data: &[u8]) -> Result<()>
Expand description

Writes a length-prefixed byte slice: [len: u32][data].

Returns an error if the data length exceeds u32::MAX.