byte-order

Portable big-endian and little-endian conversions

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

Version on this page:0.1.3.0@rev:2
LTS Haskell 22.36:0.1.3.1
Stackage Nightly 2024-10-04: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:1033a7067c57412a0d96bef3bc4f965fa3d754cd894d569adfe47607cf6edf8c,1350

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.