Portability | portable |
---|---|
Stability | provisional |
Maintainer | simons@cryp.to |
Determine the machine's endian.
Documentation
Signify the system's native byte order according to significance of bytes from low addresses to high addresses.
LittleEndian | byte order: |
BigEndian | byte order: |
PDPEndian | byte order: |
readWord32 :: Word32 -> (Word8, Word8, Word8, Word)Source
Parse a host-ordered 32-bit word into a network-ordered tuple of 8-bit words.
readWord16 :: Word16 -> (Word8, Word8)Source
Parse a host-ordered 16-bit word into a network-ordered tuple of 8-bit words.