ddn.lib.hdf5.hl.h5lt

HDF5 High-Level Lite Interface Binding

This module provides D bindings for HDF5 Lite operations (H5LT API). The Lite API provides simplified functions for common HDF5 operations.

License

BSD-3-Clause

Types 2

enumH5LT_lang_t : int

Language type for dtype_to_text

ERR = - 1
DDL = 0
C = 1
FORTRAN = 2
NO_LANG = 3
enumH5LT_FILE_IMAGE : uint

Flags for H5LTopen_file_image().

These flags control how the file image is opened and managed.

OPEN_RW = 0x0001Open image for read-write access
DONT_COPY = 0x0002The HDF5 library won't copy user supplied image buffer
DONT_RELEASE = 0x0004The HDF5 library won't deallocate user supplied image buffer
ALL = 0x0007All flags combined

Functions 57

fnherr_t H5LTmake_dataset(hid_t loc_id, const char * dset_name, int rank, const hsize_t * dims, hid_t type_id, const void * buffer)Creates and writes a dataset
fnherr_t H5LTmake_dataset_char(hid_t loc_id, const char * dset_name, int rank, const hsize_t * dims, const char * buffer)Creates and writes a char dataset
fnherr_t H5LTmake_dataset_short(hid_t loc_id, const char * dset_name, int rank, const hsize_t * dims, const short * buffer)Creates and writes a short dataset
fnherr_t H5LTmake_dataset_int(hid_t loc_id, const char * dset_name, int rank, const hsize_t * dims, const int * buffer)Creates and writes an int dataset
fnherr_t H5LTmake_dataset_long(hid_t loc_id, const char * dset_name, int rank, const hsize_t * dims, const long * buffer)Creates and writes a long dataset
fnherr_t H5LTmake_dataset_float(hid_t loc_id, const char * dset_name, int rank, const hsize_t * dims, const float * buffer)Creates and writes a float dataset
fnherr_t H5LTmake_dataset_double(hid_t loc_id, const char * dset_name, int rank, const hsize_t * dims, const double * buffer)Creates and writes a double dataset
fnherr_t H5LTmake_dataset_string(hid_t loc_id, const char * dset_name, const char * buf)Creates and writes a string dataset
fnherr_t H5LTread_dataset(hid_t loc_id, const char * dset_name, hid_t type_id, void * buffer)Reads a dataset
fnherr_t H5LTread_dataset_char(hid_t loc_id, const char * dset_name, char * buffer)Reads a char dataset
fnherr_t H5LTread_dataset_short(hid_t loc_id, const char * dset_name, short * buffer)Reads a short dataset
fnherr_t H5LTread_dataset_int(hid_t loc_id, const char * dset_name, int * buffer)Reads an int dataset
fnherr_t H5LTread_dataset_long(hid_t loc_id, const char * dset_name, long * buffer)Reads a long dataset
fnherr_t H5LTread_dataset_float(hid_t loc_id, const char * dset_name, float * buffer)Reads a float dataset
fnherr_t H5LTread_dataset_double(hid_t loc_id, const char * dset_name, double * buffer)Reads a double dataset
fnherr_t H5LTread_dataset_string(hid_t loc_id, const char * dset_name, char * buf)Reads a string dataset
fnherr_t H5LTget_dataset_ndims(hid_t loc_id, const char * dset_name, int * rank)Gets dataset rank
fnherr_t H5LTget_dataset_info(hid_t loc_id, const char * dset_name, hsize_t * dims, H5T_CLASS * type_class, size_t * type_size)Gets dataset info
fnherr_t H5LTfind_dataset(hid_t loc_id, const char * name)Finds a dataset
fnherr_t H5LTset_attribute_string(hid_t loc_id, const char * obj_name, const char * attr_name, const char * attr_data)Sets a string attribute
fnherr_t H5LTset_attribute_char(hid_t loc_id, const char * obj_name, const char * attr_name, const char * buffer, size_t size)Sets a char attribute
fnherr_t H5LTset_attribute_int(hid_t loc_id, const char * obj_name, const char * attr_name, const int * buffer, size_t size)Sets an int attribute
fnherr_t H5LTset_attribute_long(hid_t loc_id, const char * obj_name, const char * attr_name, const long * buffer, size_t size)Sets a long attribute
fnherr_t H5LTset_attribute_float(hid_t loc_id, const char * obj_name, const char * attr_name, const float * buffer, size_t size)Sets a float attribute
fnherr_t H5LTset_attribute_double(hid_t loc_id, const char * obj_name, const char * attr_name, const double * buffer, size_t size)Sets a double attribute
fnherr_t H5LTget_attribute(hid_t loc_id, const char * obj_name, const char * attr_name, hid_t mem_type_id, void * data)Gets an attribute
fnherr_t H5LTget_attribute_string(hid_t loc_id, const char * obj_name, const char * attr_name, char * data)Gets a string attribute
fnherr_t H5LTget_attribute_char(hid_t loc_id, const char * obj_name, const char * attr_name, char * data)Gets a char attribute
fnherr_t H5LTget_attribute_int(hid_t loc_id, const char * obj_name, const char * attr_name, int * data)Gets an int attribute
fnherr_t H5LTget_attribute_long(hid_t loc_id, const char * obj_name, const char * attr_name, long * data)Gets a long attribute
fnherr_t H5LTget_attribute_float(hid_t loc_id, const char * obj_name, const char * attr_name, float * data)Gets a float attribute
fnherr_t H5LTget_attribute_double(hid_t loc_id, const char * obj_name, const char * attr_name, double * data)Gets a double attribute
fnherr_t H5LTget_attribute_ndims(hid_t loc_id, const char * obj_name, const char * attr_name, int * rank)Gets attribute rank
fnherr_t H5LTget_attribute_info(hid_t loc_id, const char * obj_name, const char * attr_name, hsize_t * dims, H5T_CLASS * type_class, size_t * type_size)Gets attribute info
fnherr_t H5LTdtype_to_text(hid_t dtype, char * str, H5LT_lang_t lang_type, size_t * len)Converts datatype to text
fnhid_t H5LTtext_to_dtype(const char * text, H5LT_lang_t lang_type)Converts text description to a datatype.
fnhtri_t H5LTpath_valid(hid_t loc_id, const char * path, hbool_t check_object_valid)Checks if a path is valid.
fnhid_t H5LTopen_file_image(void * buf_ptr, size_t buf_size, uint flags)Opens a file image in memory.
fnherr_t H5LTfind_attribute(hid_t loc_id, const char * name)Determines whether an attribute exists.
fnherr_t H5LTset_attribute_short(hid_t loc_id, const char * obj_name, const char * attr_name, const short * buffer, size_t size)Sets a short attribute.
fnherr_t H5LTset_attribute_uchar(hid_t loc_id, const char * obj_name, const char * attr_name, const ubyte * buffer, size_t size)Sets an unsigned char attribute.
fnherr_t H5LTset_attribute_uint(hid_t loc_id, const char * obj_name, const char * attr_name, const uint * buffer, size_t size)Sets an unsigned int attribute.
fnherr_t H5LTset_attribute_ushort(hid_t loc_id, const char * obj_name, const char * attr_name, const ushort * buffer, size_t size)Sets an unsigned short attribute.
fnherr_t H5LTset_attribute_ulong(hid_t loc_id, const char * obj_name, const char * attr_name, const ulong * buffer, size_t size)Sets an unsigned long attribute.
fnherr_t H5LTset_attribute_long_long(hid_t loc_id, const char * obj_name, const char * attr_name, const long * buffer, size_t size)Sets a long long attribute.
fnherr_t H5LTset_attribute_ullong(hid_t loc_id, const char * obj_name, const char * attr_name, const ulong * buffer, size_t size)Sets an unsigned long long attribute.
fnherr_t H5LTget_attribute_short(hid_t loc_id, const char * obj_name, const char * attr_name, short * data)Gets a short attribute.
fnherr_t H5LTget_attribute_uchar(hid_t loc_id, const char * obj_name, const char * attr_name, ubyte * data)Gets an unsigned char attribute.
fnherr_t H5LTget_attribute_uint(hid_t loc_id, const char * obj_name, const char * attr_name, uint * data)Gets an unsigned int attribute.
fnherr_t H5LTget_attribute_ushort(hid_t loc_id, const char * obj_name, const char * attr_name, ushort * data)Gets an unsigned short attribute.
fnherr_t H5LTget_attribute_ulong(hid_t loc_id, const char * obj_name, const char * attr_name, ulong * data)Gets an unsigned long attribute.
fnherr_t H5LTget_attribute_long_long(hid_t loc_id, const char * obj_name, const char * attr_name, long * data)Gets a long long attribute.
fnherr_t H5LTget_attribute_ullong(hid_t loc_id, const char * obj_name, const char * attr_name, ulong * data)Gets an unsigned long long attribute.
fnherr_t H5LT_dtype_to_text(hid_t dtype, char * str, H5LT_lang_t lang_type, size_t * len)Converts a datatype to a text description.
fnherr_t H5LT_get_attribute_disk(hid_t loc_id, const char * obj_name, const char * attr_name, void * data)Gets an attribute from disk.
fnherr_t H5LT_set_attribute_numerical(hid_t loc_id, const char * obj_name, const char * attr_name, size_t size, hid_t type_id, const void * data)Sets a numerical attribute.
fnherr_t H5LT_set_attribute_string(hid_t loc_id, const char * obj_name, const char * attr_name, const char * data)Sets a string attribute.