pub fn decode_aligned_value(
descriptor: &TypeDescriptor,
atoms: &[ValueAtom],
cursor: &mut usize,
) -> Result<RuntimeValue>Expand description
Decode an AlignedValue to a JSON value typed by descriptor —
the inverse of encode_literal. Used both to decode circuit
arguments back into JSON-shaped local bindings and to surface
popeq read results (Cell.read, Map.lookup, etc.) inside the
interpreter.
The atoms cursor advances by however many ValueAtoms the
descriptor consumes — primitives consume 1, structs consume the
sum of their field consumption.