byte-order

Portable big-endian and little-endian conversions

https://github.com/andrewthad/byte-order

Version on this page:0.1.3.0@rev:1
LTS Haskell 22.29:0.1.3.1
Stackage Nightly 2024-07-13:0.1.3.1
Latest on Hackage:0.1.3.1

See all snapshots byte-order appears in

BSD-3-Clause licensed by Andrew Martin
Maintained by [email protected]
This version can be pinned in stack with:byte-order-0.1.3.0@sha256:a1873001ab3132e734c5b571620b06c5730299be6e70e5519ae935ad6e21773e,1349

Module documentation for 0.1.3.0

This library provides an interface to portably work with byte arrays whose contents are known to be of a fixed endianness. There are two ways to use this module. See the System.ByteOrder module for more documentation.

Changes

Revision history for byte-order

0.1.3.0 – 2021-02-22

  • Add a module for big-endian access to pointers.
  • Add Bytes instances for Word128 and Word256.

0.1.2.0 – 2020-01-06

  • Add a Bytes instance for Word.

0.1.1.0 – YYYY-mm-dd

  • Add PrimUnaligned instance for Fixed.
  • Add modules for more convenient interface to reading and writing fixed-endianness elements to byte arrays: Data.Primitive.ByteArray.LittleEndian and Data.Primitive.ByteArray.BigEndian.

0.1.0.0 – 2019-05-29

  • Initial release.