pub fn expand_zero_be_bytes(disk_bytes: &[u8], mem_len: usize) -> Vec<u8> ⓘ
Expand description
Expands disk_bytes
to mem_len
, by adding zero bytes at the start of the slice.
Used to zero-fill bytes that were discarded during serialization.
§Panics
- if
disk_bytes
is longer thanmem_len