Inherits from class H5T. Users should not create integer datatypes themselves using this class. Instead, integer should be derived from one of the base-types such as h5types$H5T_NATIVE_INT (which internally automatically creates a copy of the type). For a complete list of types see h5types$overview.

Value

Object of class H5T_INTEGER.

Methods

set_sign(sign)

This function implements the HDF5-API function H5Tset_sign. Please see the documentation at https://portal.hdfgroup.org/display/HDF5/H5T_SET_SIGN for details.

get_sign()

This function implements the HDF5-API function H5Tget_sign. Please see the documentation at https://portal.hdfgroup.org/display/HDF5/H5T_GET_SIGN for details.

describe()

Return a vector that describes the key features of the datatype

See also

Examples

my_int <- h5types$H5T_NATIVE_INT # make an int with 2 bit my_int$set_sign(h5const$H5T_SGN_NONE) my_int$set_size(1) my_int$set_precision(2) my_int$describe()
#> $size #> [1] 1 #> #> $precision #> [1] 2 #> #> $sign #> [1] H5T_SGN_NONE #> Levels: H5T_SGN_ERROR H5T_SGN_NONE H5T_SGN_2 H5T_NSGN #> Values: -1 0 1 2 #> #> $order #> [1] H5T_ORDER_LE #> 6 Levels: H5T_ORDER_ERROR H5T_ORDER_LE H5T_ORDER_BE ... H5T_ORDER_NONE #> 6 Values: -1 0 1 ... 4 #>