Write a primitive value to the byte array. The offset is given
in elements of type a rather than in bytes. The most significant
byte in the value comes first.
Modulebyte-order-0.1.3.1Haskell2010
Data.Primitive.ByteArray.BigEndian
This is drop-in replacement for the read, write, and index functions
present in Data.Primitive.ByteArray and Data.Primitive.ByteArray.Unaligned.
While the functions from those modules use native byte order, the functions
in this one use big-endian byte order (most significant byte first).
Synopsis
- value writeByteArray
- value readByteArray
- value indexByteArray
- value writeUnalignedByteArray
- value readUnalignedByteArray
- value indexUnalignedByteArray
- Packagebyte-order-0.1.3.1
- Exports6
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceBigEndian.hs
Aligned
Read a primitive value from the byte array, interpreting the first
byte as the most significant one. The offset is given in elements of
type a rather than in bytes.
Read a primitive value from the byte array, interpreting the first
byte as the most significant one. The offset is given in elements of
type a rather than in bytes.
Unaligned
Write a primitive value to the byte array. The offset is given
in bytes rather than in elements of type a. The most significant
byte in the value comes first.
Read a primitive value from the byte array, interpreting the first
byte as the most significant one. The offset is given in bytes rather
than in elements of type a.
Read a primitive value from the byte array, interpreting the first
byte as the most significant one. The offset is given in bytes rather
than in elements of type a.