diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-10-29 14:52:50 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-10-29 14:52:50 (GMT) |
commit | 0b321904a3be4d3988f99fca158d7e576ddb6df2 (patch) | |
tree | c98a60e107e500fd36b9ac0d4b5fdec0f1dd69ed /src/H5Dpublic.h | |
parent | 202d7403282230e2071412237ac7ba86ccb7f3db (diff) | |
download | hdf5-0b321904a3be4d3988f99fca158d7e576ddb6df2.zip hdf5-0b321904a3be4d3988f99fca158d7e576ddb6df2.tar.gz hdf5-0b321904a3be4d3988f99fca158d7e576ddb6df2.tar.bz2 |
New API functions
Description:
Added functions to query chunk information:
H5Dget_num_chunks(dset_id, fspace_id, *nchunks)
Gets the number of written chunks that intersect with the given
dataspace. However, in this version, the intersection is not
yet completed. Thus, the number of all written chunks will be
returned.
H5Dget_chunk_info_by_coord(dset_id, *coord, *filter_mask, *addr, *size)
Given a chunk's coordinates, returns the chunk's filter, address,
and size.
H5Dget_chunk_info(dset_id, fspace_id, index, *coord, *filter_mask, *addr, *size)
Given a chunk's index, returns the chunk's coordinates, filter,
address, and size. The chunk belongs to a set of chunks that have
nonempty intersection with the specified dataspace. However, in
this version, the intersection is not yet completed, and the index
is of all the written chunks.
Platforms tested:
Linux/64 (jelly)
Linux/64 (platypus)
Darwin (osx1011test)
Diffstat (limited to 'src/H5Dpublic.h')
-rw-r--r-- | src/H5Dpublic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Dpublic.h b/src/H5Dpublic.h index a1ccda0..fcc76ee 100644 --- a/src/H5Dpublic.h +++ b/src/H5Dpublic.h @@ -141,6 +141,9 @@ H5_DLL hid_t H5Dget_create_plist(hid_t dset_id); H5_DLL hid_t H5Dget_access_plist(hid_t dset_id); H5_DLL hsize_t H5Dget_storage_size(hid_t dset_id); H5_DLL herr_t H5Dget_chunk_storage_size(hid_t dset_id, const hsize_t *offset, hsize_t *chunk_bytes); +H5_DLL herr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t *nchunks); +H5_DLL herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t *coord, unsigned *filter_mask, haddr_t *addr, hsize_t *size); +H5_DLL herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t index, hsize_t *coord, unsigned *filter_mask, haddr_t *addr, hsize_t *size); H5_DLL haddr_t H5Dget_offset(hid_t dset_id); H5_DLL herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, void *buf/*out*/); |