H5DOwrite_chunk
fn
herr_t H5DOwrite_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.
This function writes a chunk of raw data directly to storage, bypassing the filter pipeline. This is useful when the application handles compression externally and wants to write pre-compressed data.
Parameters
dset_id | Dataset identifier (must be chunked) |
dxpl_id | Dataset transfer property list identifier |
filters | Filter mask indicating which filters were applied to the data |
offset | Logical position of the chunk within the dataset |
data_size | Size of the chunk data in bytes |
buf | Buffer containing the chunk data to write |
Returns
Non-negative on success, negative on failure.
Note
This is a compatibility wrapper. For HDF5 1.10.3+, use H5Dwrite_chunk directly.