pub fn encode_message(
global_meta: &GlobalMetadata,
objects: &[EncodedObject],
) -> Result<Vec<u8>, TensogramError>Expand description
Encode a complete message in buffered mode.
All objects are known upfront. Header contains metadata + index + hashes. Footer has only the postamble (no footer frames).
Strategy: build the message in two passes. Pass 1: serialize all pieces, compute sizes/offsets. Pass 2: assemble into final buffer.