H5resize_memory

fnvoid * H5resize_memory(void * mem, size_t size)

Resizes memory allocated by the HDF5 library.

H5resize_memory changes the size of the memory buffer to size bytes, potentially moving it. The contents will be unchanged up to the lesser of the new and old sizes.

Parameters

memBuffer to be resized. Can be NULL.
sizeNew size of the buffer

Returns

On success, returns pointer to resized buffer or returns

NULL if size is 0. Returns NULL on failure.