Skip to main content

encode

Function encode 

Source
pub fn encode(
    out: &mut Vec<u8>,
    request: i32,
    response: i32,
    flags: u32,
    body: &RawDocument,
    sequences: &[(&str, &[&RawDocument])],
    max: usize,
) -> Result<()>
Expand description

Encodes raw documents into a reusable output buffer. No allocations after capacity warms.