byteorder-1.0.4: Exposes the native endianness or byte ordering of the system.
Safe HaskellNone
LanguageHaskell98

System.ByteOrder

Synopsis

Documentation

byteOrder :: ByteOrder #

Returns the native byte ordering of the system.

data ByteOrder #

Indicates the byte-ordering for a 4-byte value, where '1' indicates the most-significant byte and '4' indicates the least significant byte.

In this format, big endian byte order would be represented as: (1,2,3,4).

For convinience, the most common cases (BigEndian and LittleEndian) are provided their own constructors.

Instances

Instances details
Read ByteOrder # 
Instance details

Defined in System.ByteOrder

Show ByteOrder # 
Instance details

Defined in System.ByteOrder

Eq ByteOrder # 
Instance details

Defined in System.ByteOrder

Ord ByteOrder # 
Instance details

Defined in System.ByteOrder