NULL if size is 0. Returns NULL on failure.
H5allocate_memory
fn
void * H5allocate_memory(size_t size, hbool_t clear)Allocates memory that will later be freed internally by the HDF5 library.
H5allocate_memory allocates a memory buffer of size bytes that will later be freed internally by the HDF5 library.
Parameters
size | The size in bytes of the buffer to be allocated |
clear | Flag whether the new buffer is to be initialized with 0 |
Returns
On success, returns pointer to newly allocated buffer or returns