License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | stable |
Portability | good |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data.Memory.Endian
Description
Documentation
data Endianness #
represent the CPU endianness
Big endian system stores bytes with the MSB as the first byte. Little endian system stores bytes with the LSB as the first byte.
middle endian is purposely avoided.
Constructors
LittleEndian | |
BigEndian |
Instances
Show Endianness # | |
Defined in Data.Memory.Endian Methods showsPrec :: Int -> Endianness -> ShowS # show :: Endianness -> String # showList :: [Endianness] -> ShowS # | |
Eq Endianness # | |
Defined in Data.Memory.Endian |
getSystemEndianness :: Endianness #
Return the system endianness
Big Endian value
Little Endian value