fn resize(buffer: &mut Vec<u8>, len: usize) -> Result<&mut [u8]>
Resizes buffer to len bytes without aborting when memory runs out and returns it.
buffer
len