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