Skip to main content

read_raw_data

Function read_raw_data 

Source
pub fn read_raw_data(
    file_data: &[u8],
    layout: &DataLayout,
    dataspace: &Dataspace,
    datatype: &Datatype,
) -> Result<Vec<u8>, FormatError>
Expand description

Read raw bytes for a dataset given its layout and the file data buffer.

For compact layouts, returns the inline data. For contiguous layouts, reads from the address in the file buffer. For chunked layouts, traverses the B-tree and assembles chunks.