pub fn atom_buffer_to_aligned(
d: &TypeDescriptor,
buf: &AtomBuffer,
) -> Result<AlignedValue>Expand description
Reconstruct an AlignedValue from an AtomBuffer (i.e. the
shape crate::ledger produces). Useful for callers that need to
pass a ledger snapshot back into encode_literal or any other
surface that wants AlignedValue. Alignment metadata is rebuilt
from descriptor so the result matches what the encoder would
have produced for the same logical value.