ddn.lib.hdf5.h5f
HDF5 File Operations Binding
This module provides D bindings for HDF5 file operations (H5F API). These functions allow creating, opening, closing, and managing HDF5 files.
License
Types 8
Scope for file flushing operations.
Determines which files are flushed when H5Fflush is called.
Object type flags for H5Fget_obj_count and H5Fget_obj_ids.
These flags can be combined with bitwise OR to select multiple object types.
File information structure (version 2).
Contains comprehensive information about an HDF5 file including superblock version, free space info, and shared object header info.
Super super_Superblock informationFree freeFree space informationSohm sohmShared object header message informationSuperSuperblock extension information.FreeFree space manager information.SohmShared object header message information.Index heap information structure.
Contains size information for index heaps used by shared object headers.
hsize_t index_sizeSize of the indexhsize_t heap_sizeSize of the heapMetadata cache configuration structure.
Used to configure the metadata cache behavior for HDF5 files. This is a simplified version suitable for most use cases.
int version_Version number of this configuration structure (use 1)hbool_t rpt_fcn_enabledEnable reporting of cache statisticshbool_t open_trace_fileEnable automatic cache size adjustmenthbool_t close_trace_fileEnable automatic cache size adjustmentchar[1025] trace_file_nameTrace file name (unused in most cases)hbool_t evictions_enabledEnable evictions from cache when fullhbool_t set_initial_sizeUse adaptive cache resizing policysize_t initial_sizeInitial cache size in bytesdouble min_clean_fractionMinimum fraction of cache to keep freesize_t max_sizeMaximum cache size in bytessize_t min_sizeMinimum cache size in byteslong epoch_lengthEpoch length in accesses for cache statisticsint incr_modeIncrement mode for adaptive resizingdouble lower_hr_thresholdLower threshold for cache hit rate triggering size increasedouble incrementFactor by which to increase cache sizehbool_t apply_max_incrementApply maximum increment limitsize_t max_incrementMaximum size incrementint flash_incr_modeFlash incr modedouble flash_multipleFlash multipledouble flash_thresholdFlash thresholdint decr_modeDecrement mode for adaptive resizingdouble upper_hr_thresholdUpper threshold for cache hit rate triggering size decreasedouble decrementFactor by which to decrease cache sizehbool_t apply_max_decrementApply maximum decrement limitsize_t max_decrementMaximum size decrementint epochs_before_evictionNumber of epochs before evicting an entryhbool_t apply_empty_reserveApply empty reservedouble empty_reserveEmpty reserve fractionsize_t dirty_bytes_thresholdDirty bytes threshold for flushint metadata_write_strategyMetadata write strategyMemory allocation types for file driver operations.
Used to specify the type of data being allocated or freed in file driver operations and free space tracking.
Free space section information structure.
Contains information about a free space section in an HDF5 file. Used by H5Fget_free_sections() to report free space information.
haddr_t addrAddress of free space sectionhsize_t sizeSize of free space sectionMetadata read retry information structure.
Data structure to report the collection of read retries for metadata items with checksum. Used by H5Fget_metadata_read_retry_info().
uint nbinsNumber of bins for each retry typeuint *[H5F_NUM_METADATA_READ_RETRY_TYPES] retriesArray of retry counts for each metadata typeFunctions 45
hid_t H5Fcreate(const char * filename, uint flags, hid_t fcpl_id, hid_t fapl_id)Creates an HDF5 file.herr_t H5Fflush(hid_t object_id, H5F_scope_t scope_)Flushes all buffers associated with a file to disk.ssize_t H5Fget_name(hid_t obj_id, char * name, size_t size)Retrieves the name of the file to which an object belongs.ssize_t H5Fget_obj_count(hid_t file_id, uint types)Returns the number of open objects in an HDF5 file.ssize_t H5Fget_obj_ids(hid_t file_id, uint types, size_t max_objs, hid_t * obj_id_list)Returns a list of open object identifiers.htri_t H5Fis_accessible(const char * container_name, hid_t fapl_id)Checks if a file can be opened with a given file access property list.herr_t H5Fmount(hid_t loc_id, const char * name, hid_t child, hid_t plist)Mounts an HDF5 file as a group within another file.herr_t H5Fget_intent(hid_t file_id, uint * intent)Retrieves the intent flags used to open the file.herr_t H5Fget_info2(hid_t file_id, H5F_info2_t * finfo)Retrieves global information about the file.herr_t H5Fset_libver_bounds(hid_t file_id, int low, int high)Sets the library version bounds for objects created in a file.herr_t H5Fstart_swmr_write(hid_t file_id)Enables SWMR (Single Writer Multiple Reader) write mode for the file.herr_t H5Fget_mdc_config(hid_t file_id, H5AC_cache_config_t * config_ptr)Retrieves the current metadata cache configuration.herr_t H5Fset_mdc_config(hid_t file_id, H5AC_cache_config_t * config_ptr)Sets the metadata cache configuration.herr_t H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t * minimize)Gets the dataset no attributes hint setting.herr_t H5Fset_dset_no_attrs_hint(hid_t file_id, hbool_t minimize)Sets the dataset no attributes hint setting.ssize_t H5Fget_file_image(hid_t file_id, void * buf_ptr, size_t buf_len)Gets a copy of the file image.herr_t H5Fget_info1(hid_t obj_id, H5F_info2_t * finfo)Gets information about file v1 (deprecated).herr_t H5Fget_mdc_size(hid_t file_id, size_t * max_size, size_t * min_clean_size,
size_t * cur_size, int * cur_num_entries)Gets metadata cache size information.herr_t H5Fget_vfd_handle(hid_t file_id, hid_t fapl_id, void * * file_handle)Gets the VFD handle for a file.herr_t H5Fget_mdc_logging_status(hid_t file_id, hbool_t * is_enabled,
hbool_t * is_currently_logging)Gets metadata cache logging status.ssize_t H5Fget_free_sections(hid_t file_id, H5F_mem_t type, size_t nsects,
H5F_sect_info_t * sect_info)Retrieves free-space section information for a file.herr_t H5Fget_mdc_image_info(hid_t file_id, haddr_t * image_addr, hsize_t * image_size)Gets metadata cache image information.herr_t H5Fget_metadata_read_retry_info(hid_t file_id, H5F_retry_info_t * info)Gets metadata read retry information.herr_t H5Fget_page_buffering_stats(hid_t file_id, uint * accesses, uint * hits,
uint * misses, uint * evictions, uint * bypasses)Gets page buffering statistics.herr_t H5Fset_latest_format(hid_t file_id, hbool_t latest_format)Sets the latest file format for a file.Variables 1
H5F_NUM_METADATA_READ_RETRY_TYPES = 21Total number of metadata read retry types.
Used with H5F_retry_info_t structure for H5Fget_metadata_read_retry_info().