H5Tencode

fnherr_t H5Tencode(hid_t obj_id, void * buf, size_t * nalloc)

Encodes a datatype description into a binary buffer.

Parameters

obj_idDatatype identifier
bufBuffer for the encoded datatype, or null to query size
nallocPointer to buffer size; receives required size on return

Returns

Non-negative on success, negative on failure.