ddn.lib.hdf5.h5

HDF5 Core Library Functions

This module provides D bindings to the general HDF5 library functions from H5public.h. These functions handle library initialization, shutdown, version information, and memory management.

License

BSD-3-Clause

Types 1

aliasH5_atclose_func_t = void function(void * ctx)

Library shutdown callback function type.

This is the type of callback function that can be registered with H5atclose() to be invoked when the HDF5 library is closing.

Parameters

ctxUser-provided context pointer passed to H5atclose()

Functions 14

fnherr_t H5open()Initializes the HDF5 library.
fnherr_t H5close()Flushes all data to disk, closes all open objects, and releases memory.
fnherr_t H5dont_atexit()Instructs library not to install atexit() cleanup routine.
fnherr_t H5garbage_collect()Garbage collects on all free-lists of all types.
fnherr_t H5set_free_list_limits(int reg_global_lim, int reg_list_lim, int arr_global_lim, int arr_list_lim, int blk_global_lim, int blk_list_lim)Sets free-list size limits.
fnherr_t H5get_free_list_sizes(size_t * reg_size, size_t * arr_size, size_t * blk_size, size_t * fac_size)Gets the current size of the free lists used to manage memory.
fnherr_t H5get_libversion(uint * majnum, uint * minnum, uint * relnum)Returns the HDF library release number.
fnherr_t H5check_version(uint majnum, uint minnum, uint relnum)Verifies that HDF5 library versions are consistent.
fnherr_t H5is_library_terminating(hbool_t * is_terminating)Checks whether the HDF5 library is closing.
fnherr_t H5is_library_threadsafe(hbool_t * is_ts)Determines whether the HDF5 library was built with thread-safety enabled.
fnherr_t H5free_memory(void * mem)Frees memory allocated by the HDF5 library.
fnvoid * H5allocate_memory(size_t size, hbool_t clear)Allocates memory that will later be freed internally by the HDF5 library.
fnvoid * H5resize_memory(void * mem, size_t size)Resizes memory allocated by the HDF5 library.
fnherr_t H5atclose(H5_atclose_func_t func, void * ctx)Registers a callback for the library to invoke when it's closing.