H5Fget_file_image

fnssize_t H5Fget_file_image(hid_t file_id, void * buf_ptr, size_t buf_len)

Gets a copy of the file image.

Parameters

file_idFile identifier
buf_ptrBuffer to receive the image (can be null to query size)
buf_lenSize of the buffer

Returns

Size of the file image on success, negative on failure.