ddn.lib.hdf5.h5d
HDF5 Dataset Binding
This module provides D bindings for HDF5 dataset operations (H5D API). These functions allow creating, opening, reading, writing, and managing datasets.
License
Types 11
Dataset layout type.
Specifies how raw data is stored in the file.
Dataset space allocation status.
Indicates how much space has been allocated for a dataset.
Dataset space allocation time.
Specifies when storage space for a dataset should be allocated.
Dataset fill time.
Specifies when fill values are written to a dataset.
Dataset fill value status.
Indicates the fill value status of a dataset.
Chunk index type.
Indicates the type of chunk indexing used for a dataset.
Callback function type for H5Diterate.
Parameters
elem | Pointer to the current element |
type_id | Datatype identifier |
ndim | Number of dimensions |
point | Coordinates of the current element |
operator_data | User data passed to H5Diterate |
Returns
Callback function type for H5Dscatter.
Parameters
src_buf | Pointer to receive the source buffer pointer |
src_buf_bytes_used | Pointer to receive the number of bytes to use |
op_data | User data passed to H5Dscatter |
Returns
Callback function type for H5Dgather.
Parameters
dst_buf | Buffer containing gathered data |
dst_buf_bytes_used | Number of bytes in the buffer |
op_data | User data passed to H5Dgather |
Returns
Callback function type for H5Dchunk_iter.
Parameters
offset | Logical position of the chunk in the dataset |
filter_mask | Bitmask indicating which filters are applied |
addr | Address of the chunk in the file |
size | Size of the chunk in bytes |
op_data | User data passed to H5Dchunk_iter |
Returns
negative to stop iteration with an error.
Address type for file offsets.
Represents an address/offset within an HDF5 file.
Functions 37
hid_t H5Dcreate2(hid_t loc_id, const char * name, hid_t type_id, hid_t space_id,
hid_t lcpl_id, hid_t dcpl_id, hid_t dapl_id)Creates a new dataset.hid_t H5Dcreate_anon(hid_t loc_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id)Creates an anonymous dataset.herr_t H5Dget_space_status(hid_t dset_id, H5D_space_status_t * allocation)Gets the space allocation status of a dataset.herr_t H5Dread(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id,
hid_t dxpl_id, void * buf)Reads data from a dataset.herr_t H5Dwrite(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id,
hid_t dxpl_id, const void * buf)Writes data to a dataset.herr_t H5Dwrite_chunk(hid_t dset_id, hid_t dxpl_id, uint filters, const hsize_t * offset,
size_t data_size, const void * buf)Writes a raw data chunk directly to a dataset.herr_t H5Dread_chunk(hid_t dset_id, hid_t dxpl_id, const hsize_t * offset, uint * filters, void * buf)Reads a raw data chunk directly from a dataset.herr_t H5Diterate(void * buf, hid_t type_id, hid_t space_id,
H5D_operator_t op, void * operator_data)Iterates over all elements in a dataset.herr_t H5Dfill(const void * fill, hid_t fill_type_id, void * buf, hid_t buf_type_id, hid_t space_id)Fills a selection in memory with a value.herr_t H5Dscatter(H5D_scatter_func_t op, void * op_data, hid_t type_id,
hid_t dst_space_id, void * dst_buf)Scatters data into a selection in a memory buffer.herr_t H5Dgather(hid_t src_space_id, const void * src_buf, hid_t type_id,
size_t dst_buf_size, void * dst_buf, H5D_gather_func_t op, void * op_data)Gathers data from a selection in a memory buffer.herr_t H5Dget_chunk_storage_size(hid_t dset_id, const hsize_t * offset, hsize_t * chunk_bytes)Returns the amount of storage required for a chunk.herr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t * nchunks)Returns the number of chunks in a dataset.herr_t H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_idx,
hsize_t * offset, uint * filter_mask, haddr_t * addr, hsize_t * size)Retrieves information about a chunk by its index.herr_t H5Dget_chunk_info_by_coord(hid_t dset_id, const hsize_t * offset,
uint * filter_mask, haddr_t * addr, hsize_t * size)Retrieves information about a chunk by its coordinates.herr_t H5Dvlen_get_buf_size(hid_t dset_id, hid_t type_id, hid_t space_id, hsize_t * size)Determines the number of bytes required to store variable-length data.herr_t H5Dvlen_reclaim(hid_t type_id, hid_t space_id, hid_t dxpl_id, void * buf)Reclaims memory used by variable-length datatype data.herr_t H5Dchunk_iter(hid_t dset_id, hid_t dxpl_id, H5D_chunk_iter_op_t cb, void * op_data)Iterates over all chunks in a dataset.hid_t H5Dcreate1(hid_t loc_id, const char * name, hid_t type_id,
hid_t space_id, hid_t dcpl_id)Creates a dataset (version 1, deprecated).herr_t H5Dextend(hid_t dset_id, const hsize_t * size)Extends a dataset (deprecated, use H5Dset_extent).herr_t H5Dget_chunk_index_type(hid_t dset_id, H5D_chunk_index_type_t * idx_type)Gets the chunk indexing type for a dataset.herr_t H5Dread_multi(size_t count, hid_t * dset_id, hid_t * mem_type_id,
hid_t * mem_space_id, hid_t * file_space_id, hid_t dxpl_id, void * * buf)Reads data from multiple datasets.herr_t H5Dwrite_multi(size_t count, hid_t * dset_id, hid_t * mem_type_id,
hid_t * mem_space_id, hid_t * file_space_id, hid_t dxpl_id, const(void *) * buf)Writes data to multiple datasets.Variables 2
HADDR_UNDEF = haddr_t.maxUndefined address constant
H5S_ALL = 0Select all elements in dataspace