Last modified: June 7, 2017
Name: H5Dget_chunk_storage_size
Signature:
herr_tH5Dget_chunk_storage_size( hid_t dataset_id, const hsize_t *offset, hsize_t *chunk_nbytes )

Purpose:
Returns the amount of storage allocated within the file for a raw data chunk in a dataset.

Description:
H5Dget_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.

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.

Returns:
Returns a non-negative value if successful; otherwise returns a negative value.

Fortran90 Interface:
None

See Also:

History:
Release     Change
1.8.19 C function introduced in this release.