Skip to main content

alloc_bytes

Function alloc_bytes 

Source
pub fn alloc_bytes(buf: &mut Vec<u8>, n: usize) -> Result<u32>
Expand description

Reserve n zeroed bytes at the current position, returning their offset.