pub fn encode_reference_element(
image: &ReferenceElementImage,
size: usize,
ctx: &FormatContext,
) -> FormatResult<Vec<u8>>Expand description
The image one reference element has, at the size its datatype declares.
The single owner of reference-element encoding, so every element layout this module documents is written where it is read. Anything past what the layout needs is left zero, which is where libhdf5 leaves it too: it sizes every element for the largest reference the dataset may hold and writes only as much of it as the reference uses.