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) extern(C) @nogc nothrowCreates 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) extern(C) @nogc nothrowCreates an anonymous dataset.hid_t H5Dopen2(hid_t loc_id, const char * name, hid_t dapl_id) extern(C) @nogc nothrowOpens an existing dataset.herr_t H5Dget_space_status(hid_t dset_id, H5D_space_status_t * allocation) extern(C) @nogc nothrowGets the space allocation status of a dataset.hid_t H5Dget_create_plist(hid_t dset_id) extern(C) @nogc nothrowGets the dataset creation property list.hid_t H5Dget_access_plist(hid_t dset_id) extern(C) @nogc nothrowGets the dataset access property list.hsize_t H5Dget_storage_size(hid_t dset_id) extern(C) @nogc nothrowGets the amount of storage required for a dataset.haddr_t H5Dget_offset(hid_t dset_id) extern(C) @nogc nothrowGets the offset of a dataset in the file.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) extern(C) @nogc nothrowReads 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) extern(C) @nogc nothrowWrites data to a dataset.herr_t H5Dset_extent(hid_t dset_id, const hsize_t * size) extern(C) @nogc nothrowChanges the dimensions of 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) extern(C) @nogc nothrowWrites 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) extern(C) @nogc nothrowReads a raw data chunk directly from a dataset.herr_t H5Dflush(hid_t dset_id) extern(C) @nogc nothrowFlushes all buffers associated with a dataset to disk.herr_t H5Drefresh(hid_t dset_id) extern(C) @nogc nothrowRefreshes all buffers associated with a dataset.herr_t H5Diterate(void * buf, hid_t type_id, hid_t space_id,
H5D_operator_t op, void * operator_data) extern(C) @nogc nothrowIterates 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) extern(C) @nogc nothrowFills 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) extern(C) @nogc nothrowScatters 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) extern(C) @nogc nothrowGathers 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) extern(C) @nogc nothrowReturns the amount of storage required for a chunk.herr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t * nchunks) extern(C) @nogc nothrowReturns 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) extern(C) @nogc nothrowRetrieves 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) extern(C) @nogc nothrowRetrieves 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) extern(C) @nogc nothrowDetermines 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) extern(C) @nogc nothrowReclaims 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) extern(C) @nogc nothrowIterates 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) extern(C) @nogc nothrowCreates a dataset (version 1, deprecated).hid_t H5Dopen1(hid_t loc_id, const char * name) extern(C) @nogc nothrowOpens a dataset (version 1, deprecated).herr_t H5Dextend(hid_t dset_id, const hsize_t * size) extern(C) @nogc nothrowExtends a dataset (deprecated, use H5Dset_extent).herr_t H5Dget_chunk_index_type(hid_t dset_id, H5D_chunk_index_type_t * idx_type) extern(C) @nogc nothrowGets 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) extern(C) @nogc nothrowReads 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) extern(C) @nogc nothrowWrites data to multiple datasets.Variables 2
HADDR_UNDEF = haddr_t.maxUndefined address constant
H5S_ALL = 0Select all elements in dataspace