Reading an Attribute
Function Syntax
Read an attribute.
herr_t H5Aread(hid_t attributeId, hid_t datatypeId, void *buffer )
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
attributeId |
Identifier of the attribute to read |
Integer |
Input |
datatypeId |
Identifier of the attribute data type (in memory) |
Integer |
Input |
*buffer |
Buffer for the data to read |
Non-empty |
Output |
Return Value
- Success: non-negative value
- Failure: negative value
Parent topic: Attribute APIs