Skip to main content

decode

Function decode 

Source
pub fn decode(
    buf: &[u8],
    options: &DecodeOptions,
) -> Result<(GlobalMetadata, Vec<(DataObjectDescriptor, Vec<u8>)>), TensogramError>
Expand description

Decode all objects from a message buffer. Returns (global_metadata, list of (descriptor, decoded_data)).

When options.threads > 0 (or TENSOGRAM_THREADS is set), per-object decode work is parallelised using the axis-B-first policy documented in docs/src/guide/multi-threaded-pipeline.md. Output bytes are byte-identical to the sequential path regardless of thread count.