H5Sencode2

fnherr_t H5Sencode2(hid_t obj_id, void * buf, size_t * nalloc, hid_t fapl)

Encodes a dataspace into a binary buffer.

Parameters

obj_idDataspace identifier
bufBuffer to receive encoded data (can be null to query size)
nallocPointer to buffer size (input/output)
faplFile access property list identifier

Returns

Non-negative on success, negative on failure.