Skip to main content

encode_with_codec

Function encode_with_codec 

Source
pub fn encode_with_codec(
    cx: &mut Cx,
    symbol: &Symbol,
    expr: &Expr,
    options: EncodeOptions,
) -> Result<Output>
Expand description

Encode expr with the codec named symbol under options.

Looks the codec up, builds a WriteCx from options (which fix the output position and fidelity), and runs the codec’s encoder.