ddn.lib.hdf5.h5t
HDF5 Datatype Binding
This module provides D bindings for HDF5 datatype operations (H5T API).
License
BSD-3-Clause
var H5T_C_S1_g H5T_NATIVE_DOUBLE_g H5T_NATIVE_FLOAT_g H5T_NATIVE_INT_g H5T_NATIVE_LLONG_g H5T_NATIVE_LONG_g H5T_NATIVE_SCHAR_g H5T_NATIVE_SHORT_g H5T_NATIVE_UCHAR_g H5T_NATIVE_UINT_g H5T_NATIVE_ULLONG_g H5T_NATIVE_ULONG_g H5T_NATIVE_USHORT_g
alias H5T_conv_t
enum H5T_bkg_t H5T_class_t H5T_cmd_t H5T_cset_t H5T_direction_t H5T_norm_t H5T_order_t H5T_pad_t H5T_pers_t H5T_sign_t H5T_str_t
struct H5T_cdata_t
fn H5T_C_S1 H5T_NATIVE_DOUBLE H5T_NATIVE_FLOAT H5T_NATIVE_INT H5T_NATIVE_LLONG H5T_NATIVE_LONG H5T_NATIVE_SCHAR H5T_NATIVE_SHORT H5T_NATIVE_UCHAR H5T_NATIVE_UINT H5T_NATIVE_ULLONG H5T_NATIVE_ULONG H5T_NATIVE_USHORT H5Tarray_create1 H5Tarray_create2 H5Tclose H5Tcommit1 H5Tcommit2 H5Tcommit_anon H5Tcommitted H5Tcompiler_conv H5Tconvert H5Tcopy H5Tcreate H5Tdecode H5Tdetect_class H5Tencode H5Tenum_create H5Tenum_insert H5Tenum_nameof H5Tenum_valueof H5Tequal H5Tfind H5Tflush H5Tget_array_dims1 H5Tget_array_dims2 H5Tget_array_ndims H5Tget_class H5Tget_create_plist H5Tget_cset H5Tget_ebias H5Tget_fields H5Tget_inpad H5Tget_member_class H5Tget_member_index H5Tget_member_name H5Tget_member_offset H5Tget_member_type H5Tget_member_value H5Tget_native_type H5Tget_nmembers H5Tget_norm H5Tget_offset H5Tget_order H5Tget_pad H5Tget_precision H5Tget_sign H5Tget_size H5Tget_strpad H5Tget_super H5Tget_tag H5Tinsert H5Tis_variable_str H5Tlock H5Topen1 H5Topen2 H5Tpack H5Treclaim H5Trefresh H5Tregister H5Tset_cset H5Tset_ebias H5Tset_fields H5Tset_inpad H5Tset_norm H5Tset_offset H5Tset_order H5Tset_pad H5Tset_precision H5Tset_sign H5Tset_size H5Tset_strpad H5Tset_tag H5Tunregister H5Tvlen_create
Types 13
enumH5T_class_t : int
Datatype class identifiers
NO_CLASS = - 1
INTEGER = 0
FLOAT = 1
TIME = 2
STRING = 3
BITFIELD = 4
OPAQUE = 5
COMPOUND = 6
REFERENCE = 7
ENUM = 8
VLEN = 9
ARRAY = 10
NCLASSES = 11
enumH5T_order_t : int
Byte order
ORDER_ERROR = - 1
LE = 0
BE = 1
VAX = 2
MIXED = 3
NONE = 4
enumH5T_sign_t : int
Sign type
SGN_ERROR = - 1
SGN_NONE = 0
SGN_2 = 1
NSGN = 2
enumH5T_cset_t : int
Character set
CSET_ERROR = - 1
ASCII = 0
UTF8 = 1
enumH5T_str_t : int
String padding
STR_ERROR = - 1
NULLTERM = 0
NULLPAD = 1
SPACEPAD = 2
enumH5T_direction_t : int
Type search direction
DIR_DEFAULT = 0
DIR_ASCEND = 1
DIR_DESCEND = 2
enumH5T_pad_t : int
Padding type for bits
PAD_ERROR = - 1
PAD_ZERO = 0
PAD_ONE = 1
PAD_BACKGROUND = 2
NPAD = 3
enumH5T_norm_t : int
Floating-point normalization type
NORM_ERROR = - 1
NORM_IMPLIED = 0
NORM_MSBSET = 1
NORM_NONE = 2
enumH5T_pers_t : int
Type conversion persistence.
Controls whether a conversion function is hard (always used) or soft (used only as fallback).
DONTCARE = - 1Unused/error value
HARD = 0Hard conversion function - always used
SOFT = 1Soft conversion function - fallback
enumH5T_cmd_t : int
Conversion command for H5T_conv_t callbacks.
INIT = 0Initialize conversion (allocate private data)
CONV = 1Perform conversion
FREE = 2Free private data
enumH5T_bkg_t : int
Background buffer disposition.
NO = 0No background buffer needed
TEMP = 1Background buffer needed, preserve existing data
YES = 2Background buffer needed, don't preserve
structH5T_cdata_t
aliasH5T_conv_t = herr_t function(hid_t src_id, hid_t dst_id,
H5T_cdata_t * cdata, size_t nelmts, size_t buf_stride, size_t bkg_stride,
void * buf, void * bkg, hid_t plist_id) @nogc nothrow
Type conversion function pointer type.
Parameters
src_id | Source datatype identifier |
dst_id | Destination datatype identifier |
cdata | Conversion data structure |
nelmts | Number of elements to convert |
buf_stride | Buffer stride |
bkg_stride | Background buffer stride |
buf | Buffer containing data to convert |
bkg | Background buffer |
plist_id | Property list identifier |
Returns
Non-negative on success, negative on failure.
Functions 85
fn
htri_t H5Tequal(hid_t type1_id, hid_t type2_id) extern(C) @nogc nothrowDetermines whether two datatype identifiers refer to the same datatypefn
herr_t H5Tcommit2(hid_t loc_id, const char * name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id) extern(C) @nogc nothrowCommits a transient datatype to a filefn
hid_t H5Topen2(hid_t loc_id, const char * name, hid_t tapl_id) extern(C) @nogc nothrowOpens a committed datatypefn
htri_t H5Tcommitted(hid_t type_id) extern(C) @nogc nothrowDetermines whether a datatype is a committed typefn
herr_t H5Tinsert(hid_t parent_id, const char * name, size_t offset, hid_t member_id) extern(C) @nogc nothrowAdds a new member to a compound datatypefn
herr_t H5Tpack(hid_t type_id) extern(C) @nogc nothrowRecursively removes padding from within a compound datatypefn
herr_t H5Tenum_insert(hid_t type, const char * name, const void * value) extern(C) @nogc nothrowInserts a new enumeration memberfn
hid_t H5Tarray_create2(hid_t base_id, uint ndims, const hsize_t * dim) extern(C) @nogc nothrowCreates an array datatypefn
int H5Tget_array_ndims(hid_t type_id) extern(C) @nogc nothrowReturns the number of dimensions of an array datatypefn
int H5Tget_array_dims2(hid_t type_id, hsize_t * dims) extern(C) @nogc nothrowRetrieves sizes of array dimensionsfn
hid_t H5Tget_super(hid_t type) extern(C) @nogc nothrowReturns the base datatype from which a datatype is derivedfn
H5T_class_t H5Tget_class(hid_t type_id) extern(C) @nogc nothrowReturns the datatype class identifierfn
htri_t H5Tdetect_class(hid_t type_id, H5T_class_t cls) extern(C) @nogc nothrowDetermines whether a datatype contains a specific classfn
H5T_order_t H5Tget_order(hid_t type_id) extern(C) @nogc nothrowReturns the byte order of a datatypefn
size_t H5Tget_precision(hid_t type_id) extern(C) @nogc nothrowReturns the precision of an atomic datatypefn
H5T_sign_t H5Tget_sign(hid_t type_id) extern(C) @nogc nothrowReturns the sign type for an integer datatypefn
H5T_cset_t H5Tget_cset(hid_t type_id) extern(C) @nogc nothrowReturns the character set type of a string datatypefn
H5T_str_t H5Tget_strpad(hid_t type_id) extern(C) @nogc nothrowReturns the string padding method for a string datatypefn
int H5Tget_nmembers(hid_t type_id) extern(C) @nogc nothrowReturns the number of members in a compound or enumeration datatypefn
char * H5Tget_member_name(hid_t type_id, uint membno) extern(C) @nogc nothrowReturns the name of a compound or enumeration datatype memberfn
int H5Tget_member_index(hid_t type_id, const char * name) extern(C) @nogc nothrowReturns the index of a compound or enumeration datatype memberfn
size_t H5Tget_member_offset(hid_t type_id, uint membno) extern(C) @nogc nothrowReturns the byte offset of a compound datatype memberfn
H5T_class_t H5Tget_member_class(hid_t type_id, uint membno) extern(C) @nogc nothrowReturns the class of a compound datatype memberfn
hid_t H5Tget_member_type(hid_t type_id, uint membno) extern(C) @nogc nothrowReturns the datatype of a compound datatype memberfn
htri_t H5Tis_variable_str(hid_t type_id) extern(C) @nogc nothrowDetermines whether a datatype is a variable-length stringfn
hid_t H5Tget_native_type(hid_t type_id, H5T_direction_t direction) extern(C) @nogc nothrowReturns the native datatype of a specified datatypefn
herr_t H5Tset_size(hid_t type_id, size_t size) extern(C) @nogc nothrowSets the total size for a datatypefn
herr_t H5Tset_order(hid_t type_id, H5T_order_t order) extern(C) @nogc nothrowSets the byte order of a datatypefn
herr_t H5Tset_precision(hid_t type_id, size_t prec) extern(C) @nogc nothrowSets the precision of an atomic datatypefn
herr_t H5Tset_cset(hid_t type_id, H5T_cset_t cset) extern(C) @nogc nothrowSets the character set used by a string datatypefn
herr_t H5Tset_strpad(hid_t type_id, H5T_str_t strpad) extern(C) @nogc nothrowSets the string padding method for a string datatypefn
hid_t H5Tget_create_plist(hid_t type_id) extern(C) @nogc nothrowReturns the datatype creation property list identifier.fn
herr_t H5Tencode(hid_t obj_id, void * buf, size_t * nalloc) extern(C) @nogc nothrowEncodes a datatype description into a binary buffer.fn
hid_t H5Tdecode(const void * buf) extern(C) @nogc nothrowDecodes a binary buffer to create a datatype.fn
herr_t H5Trefresh(hid_t type_id) extern(C) @nogc nothrowRefreshes a committed datatype's metadata.fn
herr_t H5Tenum_nameof(hid_t type, const void * value, char * name, size_t size) extern(C) @nogc nothrowReturns the symbol name corresponding to an enumeration member value.fn
herr_t H5Tenum_valueof(hid_t type, const char * name, void * value) extern(C) @nogc nothrowReturns the value corresponding to an enumeration member name.fn
herr_t H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts,
void * buf, void * background, hid_t plist_id) extern(C) @nogc nothrowConverts data from one datatype to another.fn
herr_t H5Treclaim(hid_t type_id, hid_t space_id, hid_t plist_id, void * buf) extern(C) @nogc nothrowReclaims memory used by variable-length datatype data.fn
herr_t H5Tcommit_anon(hid_t loc_id, hid_t type_id, hid_t tcpl_id, hid_t tapl_id) extern(C) @nogc nothrowCommits an anonymous datatype to a file.fn
size_t H5Tget_ebias(hid_t type_id) extern(C) @nogc nothrowGets the exponent bias of a floating-point type.fn
herr_t H5Tset_ebias(hid_t type_id, size_t ebias) extern(C) @nogc nothrowSets the exponent bias of a floating-point type.fn
herr_t H5Tget_fields(hid_t type_id, size_t * spos, size_t * epos,
size_t * esize, size_t * mpos, size_t * msize) extern(C) @nogc nothrowGets the floating-point datatype bit field information.fn
herr_t H5Tset_fields(hid_t type_id, size_t spos, size_t epos,
size_t esize, size_t mpos, size_t msize) extern(C) @nogc nothrowSets the floating-point datatype bit field information.fn
H5T_pad_t H5Tget_inpad(hid_t type_id) extern(C) @nogc nothrowGets the internal padding type for unused bits in floating-point types.fn
herr_t H5Tset_inpad(hid_t type_id, H5T_pad_t pad) extern(C) @nogc nothrowSets the internal padding type for unused bits in floating-point types.fn
H5T_norm_t H5Tget_norm(hid_t type_id) extern(C) @nogc nothrowGets the mantissa normalization type.fn
herr_t H5Tset_norm(hid_t type_id, H5T_norm_t norm) extern(C) @nogc nothrowSets the mantissa normalization type.fn
int H5Tget_offset(hid_t type_id) extern(C) @nogc nothrowGets the bit offset of the first significant bit.fn
herr_t H5Tset_offset(hid_t type_id, size_t offset) extern(C) @nogc nothrowSets the bit offset of the first significant bit.fn
herr_t H5Tget_pad(hid_t type_id, H5T_pad_t * lsb, H5T_pad_t * msb) extern(C) @nogc nothrowGets the padding type for least and most significant bits.fn
herr_t H5Tset_pad(hid_t type_id, H5T_pad_t lsb, H5T_pad_t msb) extern(C) @nogc nothrowSets the padding type for least and most significant bits.fn
char * H5Tget_tag(hid_t type_id) extern(C) @nogc nothrowGets the tag associated with an opaque datatype.fn
herr_t H5Tset_tag(hid_t type_id, const char * tag) extern(C) @nogc nothrowSets the tag for an opaque datatype.fn
herr_t H5Tset_sign(hid_t type_id, H5T_sign_t sign) extern(C) @nogc nothrowSets the sign property for an integer type.fn
herr_t H5Tget_member_value(hid_t type_id, uint membno, void * value) extern(C) @nogc nothrowGets the value of an enumeration member.fn
H5T_conv_t H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t * * pcdata) extern(C) @nogc nothrowFinds a conversion function between datatypes.fn
htri_t H5Tcompiler_conv(hid_t src_id, hid_t dst_id) extern(C) @nogc nothrowChecks if the library's default conversion is a compiler cast.fn
herr_t H5Tregister(H5T_pers_t pers, const char * name, hid_t src_id,
hid_t dst_id, H5T_conv_t func) extern(C) @nogc nothrowRegisters a datatype conversion function.fn
herr_t H5Tunregister(H5T_pers_t pers, const char * name, hid_t src_id,
hid_t dst_id, H5T_conv_t func) extern(C) @nogc nothrowUnregisters a datatype conversion function.fn
hid_t H5Tarray_create1(hid_t base_id, int ndims, const hsize_t * dim,
const int * perm) extern(C) @nogc nothrowCreates an array datatype (deprecated version 1).fn
int H5Tget_array_dims1(hid_t type_id, hsize_t * dims, int * perm) extern(C) @nogc nothrowGets array dimensions (deprecated version 1).fn
herr_t H5Tcommit1(hid_t loc_id, const char * name, hid_t type_id) extern(C) @nogc nothrowCommits a transient datatype (deprecated version 1).fn
hid_t H5Topen1(hid_t loc_id, const char * name) extern(C) @nogc nothrowOpens a committed datatype (deprecated version 1).Variables 13
var
hid_t H5T_NATIVE_SCHAR_gvar
hid_t H5T_NATIVE_UCHAR_gvar
hid_t H5T_NATIVE_SHORT_gvar
hid_t H5T_NATIVE_USHORT_gvar
hid_t H5T_NATIVE_INT_gvar
hid_t H5T_NATIVE_UINT_gvar
hid_t H5T_NATIVE_LONG_gvar
hid_t H5T_NATIVE_ULONG_gvar
hid_t H5T_NATIVE_LLONG_gvar
hid_t H5T_NATIVE_ULLONG_gvar
hid_t H5T_NATIVE_FLOAT_gvar
hid_t H5T_NATIVE_DOUBLE_gvar
hid_t H5T_C_S1_g