Skip to main content

blob_tree

Function blob_tree 

Source
pub fn blob_tree(
    nodes: &[NodeSpec],
    format: u32,
    big_endian: bool,
    strings: Strings,
    common: &[(u32, &[u8])],
) -> Vec<u8> ⓘ
Expand description

A blob-format tree: node count, string-buffer size, nodes, buffer. common is (offset, string) pairs used when strings is Common: a type or name equal to one of them is written as its offset with the high bit set, and every other string goes into the local buffer. Each distinct local string is stored once, in first-use order (type, then name, row by row).