H5EnumType

H5EnumType

Representation of a HDF5 enum type.

Constructor

new H5EnumType(code, levels)

Source:
Parameters:
Name Type Description
code string

String specifying the integer type for the codes. This should be "IntX" or "UintX" for X of 8, 16, 32, or 64.

levels Array | object

Array of unique strings containing the names of the levels. The position of each string in this array is used as the integer code for each level. Alternatively, an object where each key is the name of a level and each value is the corresponding integer code.

Classes

H5EnumType

Members

code :string

Source:

Integer type for the codes.

Type:
  • string

levels :object

Source:

Mapping from level names (keys) and the corresponding integer code (values).evels.

Type:
  • object