Skip to main content

encode

Function encode 

Source
pub unsafe fn encode(
    base: *const u8,
    descriptor: &Descriptor,
    descriptor_blocks: &HashMap<SchemaId, Descriptor>,
    reg: &Registry,
) -> Result<Vec<u8>, CompactError>
Expand description

Lower descriptor and encode the value at base in one step.

§Safety

As encode_with.

§Errors

As lower.