License | BSD-style |
---|---|
Maintainer | Haskell Foundation |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Set endianness tag to a given primitive. This will help for serialising data for protocols (such as the network protocols).
Documentation
Class of types that can be byte-swapped.
e.g. Word16, Word32, Word64
byteSwap
Big Endian
Big Endian value
Eq a => Eq (BE a) Source # | |
(ByteSwap a, Ord a) => Ord (BE a) Source # | |
Show a => Show (BE a) Source # | |
Bits a => Bits (BE a) Source # | |
PrimMemoryComparable a => PrimMemoryComparable (BE a) Source # | |
PrimType a => PrimType (BE a) Source # | |
NormalForm a => NormalForm (BE a) Source # | |
type PrimSize (BE a) Source # | |
Little Endian
Little Endian value
Eq a => Eq (LE a) Source # | |
(ByteSwap a, Ord a) => Ord (LE a) Source # | |
Show a => Show (LE a) Source # | |
Bits a => Bits (LE a) Source # | |
PrimMemoryComparable a => PrimMemoryComparable (LE a) Source # | |
PrimType a => PrimType (LE a) Source # | |
NormalForm a => NormalForm (LE a) Source # | |
type PrimSize (LE a) Source # | |
System Endianness
endianness :: Endianness Source #
endianness of the current architecture