H5D_GET_STORAGE_SIZE returns the amount of storage, in bytes, that is allocated in the file for the raw data of the dataset specified by
Note that the amount of storage in this case is the storage allocated in the written file, which will typically differ from the space required to hold a dataset in working memory.
- For contiguous datasets, the returned size equals thecurrentallocated the currentallocated size of the raw data.
- For unfiltered chunked datasets, the returned size is the number of allocated chunks times the chunk size.
For filtered chunked datasets, the returned size is the space required to store the filtered data. For example, if a compression filter is in use, H5D_GET_STORAGE_SIZE returns the total space required to store the compressed chunks.
H5D_GET_STORAGE_SIZE reports only the space required to store the data; the report does not include any metadata.
The return value may be zero if no data has been stored.