H5D_GET_CHUNK_STORAGE_SIZE
Returns the amount of storage allocated within the file for a raw data chunk in a dataset
Procedure:
H5D_GET_CHUNK_STORAGE_SIZE ( dataset_id, offset, chunk_nbytes )
Signature:
herr_tH5Dget_chunk_storage_size(
hid_t dataset_id,
const hsize_t *offset,
hsize_t *chunk_nbytes
)
Parameters:
hid_t dataset_id | IN: Identifier of the dataset to query |
const hsize_t * offset | IN: Logical offset in the dataset for the chunk to query |
hsize_t * chunk_nbytes | OUT: The size in bytes for the chunk |
Description:
H5D_GET_CHUNK_STORAGE_SIZE returns the size in bytes allocated in the file for a raw data chunk as specified by its logical offset
in the dataset dataset_id
. The size is returned in chunk_nbytes
. It is the size of the compressed data if the chunk is filtered and the size may be zero if no storage is allocated yet for the dataset.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
History:
Release | Change |
---|
1.10.2 | C function introduced in this release |
--- Last Modified: December 18, 2018 | 01:25 PM