Function fuel_types::bytes::restore_bytes
source · pub fn restore_bytes(buf: &[u8]) -> Result<(usize, Vec<u8>, &[u8])>
Expand description
Attempt to restore a variable size bytes from a buffer.
Will read the length, the bytes amount (word-aligned), and return the remainder buffer.