byte-order

Portable big-endian and little-endian conversions

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

Version on this page:0.1.3.0
LTS Haskell 22.14:0.1.3.1
Stackage Nightly 2024-03-28: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:f4d3686234080aa5390e453fe500d5534f1a2d8988ae87cbba6ab7804a564c4c,1288

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.