Skip to main content

resize

Function resize 

fn resize(buffer: &mut Vec<u8>, len: usize) -> Result<&mut [u8]>
Expand description

Resizes buffer to len bytes without aborting when memory runs out and returns it.