Skip to main content

write_section_literal_pool

Function write_section_literal_pool 

Source
pub fn write_section_literal_pool(literal_pool: &[Value], buf: &mut Vec<u8>)
Expand description

Write the T1b literal pool section (no header framing) — a flat list of content-hash-deduplicated constant Values referenced by PushLiteral(idx) (docs/format-v4-rfc.md §2). Each entry uses the existing generic encode_value (the same recursive VAL_ARRAY/VAL_MAP tree encoding as a GlobalVarDef default).