Documentation Center

  • Trial Software
  • Product Updates

H5T.set_order

Set byte ordering of atomic data type

Syntax

H5T.set_order(type_id,type_order)

Description

H5T.set_order(type_id,type_order) sets the byte ordering of an atomic data type. type_order can be one of the following values:

H5T_ORDER_LE
H5T_ORDER_BE
H5T_ORDER_VAX

Examples

Create a big endian 32-bit integer type.

type_id = H5T.copy('H5T_NATIVE_INT');
order = H5ML.get_constant_value('H5T_ORDER_BE');
H5T.set_order(type_id,order);

See Also

|

Was this topic helpful?