H5DOwrite_chunk

fnherr_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_idDataset identifier (must be chunked)
dxpl_idDataset transfer property list identifier
filtersFilter mask indicating which filters were applied to the data
offsetLogical position of the chunk within the dataset
data_sizeSize of the chunk data in bytes
bufBuffer 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.