Main Content

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. Specify type_order as one of these character vectors or string scalars.

'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);