flat-0.3.4: Principled and efficient bit-oriented binary serialization.

Safe HaskellSafe
LanguageHaskell2010

Data.Flat.Endian

Description

Endian utilities Exported for testing purposes, but not meant to be used outside this package.

Synopsis

Documentation

toBE32 :: Word32 -> Word32 Source #

Convert a 32 bit value in cpu endianess to big endian

toBE64 :: Word64 -> Word64 Source #

Convert a 64 bit value in cpu endianess to big endian

toBE16 :: Word16 -> Word16 Source #

Convert a 16 bit value in cpu endianess to big endian

fix64 :: Word64 -> Word64 Source #

Fix issue with ghcjs (different order of 32 bit halves of 64 values with respect to ghc)