pub fn decode_inline(
doc: &Document,
array: &Ndarray,
shape: &[u64],
) -> Result<Vec<Element>>Expand description
Decode an array whose data is inline in the tree rather than in a block.
The elements are already text in the document, so this is the mirror of
inline_ndarray: walk the nested sequences under data in row-major
order and read each scalar as the array’s datatype.
The descent is driven by shape, not by how deeply the sequences happen
to nest. That distinction matters for a compound array, whose innermost
“sequence” is one record’s fields rather than another dimension.
A masked value written as null decodes to the datatype’s zero, since
Element carries no missing-value marker; mask itself is available on
the Ndarray for a caller that needs to know which those were.