Skip to main content

encode_length

Function encode_length 

Source
pub fn encode_length(length: usize, into: &mut Vec<u8>)
Expand description

Append one length as eight big-endian bytes.

A fixed width rather than a varint, because a canonical encoding that admitted two spellings of one length would admit two preimages for one value.