Skip to main content

encode

Function encode 

Source
pub fn encode(input: &[u8], limits: Limits) -> Result<(Vec<u8>, EncodeReport)>
Expand description

Encode input exactly, returning the serialized descriptor and a report.

Every returned byte sequence has already been round-tripped through the normative decoder and byte-compared against input.