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