Skip to main content

encode_bytes

Function encode_bytes 

Source
pub fn encode_bytes(material: &[u8], into: &mut Vec<u8>)
Expand description

Append one length-prefixed byte string: the eight-byte length, then the bytes.

Without the prefix, two members could be split at a different boundary and encode identically — the concatenation collision the prefix removes outright.