H5allocate_memory

fnvoid * 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

sizeThe size in bytes of the buffer to be allocated
clearFlag whether the new buffer is to be initialized with 0

Returns

On success, returns pointer to newly allocated buffer or returns

NULL if size is 0. Returns NULL on failure.