License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <[email protected]> |
Stability | stable |
Portability | good |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
data Endianness Source #
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.
Instances
Eq Endianness Source # | |
Defined in Data.Memory.Endian (==) :: Endianness -> Endianness -> Bool # (/=) :: Endianness -> Endianness -> Bool # | |
Show Endianness Source # | |
Defined in Data.Memory.Endian showsPrec :: Int -> Endianness -> ShowS # show :: Endianness -> String # showList :: [Endianness] -> ShowS # |
getSystemEndianness :: Endianness Source #
Return the system endianness
Big Endian value
Instances
Eq a => Eq (BE a) Source # | |
Show a => Show (BE a) Source # | |
Storable a => Storable (BE a) Source # | |
Little Endian value
Instances
Eq a => Eq (LE a) Source # | |
Show a => Show (LE a) Source # | |
Storable a => Storable (LE a) Source # | |