Rate This Document
Findability
Accuracy
Completeness
Readability

Writing to a Dataset

Function Syntax

Write raw data from a buffer to a dataset.

herr_t H5Dwrite(hid_t datasetId, hid_t datatypeId, hid_t memorySpaceId, hid_t fileSpaceId, hid_t xferPropertylistId, const void * buffer)

Parameters

Parameter

Description

Value Range

Input/Output

datasetId

Identifier of the dataset to write

Integer

Input

datatypeId

Identifier of the memory data type

Integer

Input

memorySpaceId

Identifier of the memory data space

Integer

Input

fileSpaceId

Identifier of the data space of the dataset in the file

Integer

Input

xferPropertylistId

Transfer property list identifier of this I/O operation

Integer

Input

*buffer

Buffer for the data to write to the file

Non-empty

Input

Return Value

  • Success: non-negative value
  • Failure: negative value