Skip to main content

encode_value_raw

Function encode_value_raw 

pub fn encode_value_raw(v: &RuntimeValue) -> Result<Vec<u8>, String>
Expand description

Encode ONE value as the plain, self-describing recursive wire form — no envelope, no framing, no columnar/compression/dedup transforms. This is the exact format the shared [logicaffeine_data::wire] core decodes, so a RuntimeValue encoded here round-trips through an AOT-generated type’s wire_decode (and vice versa). The speed-first form used to hand a program AST to a compile-once native partial evaluator.