Safe Haskell | None |
---|
- class (Prim w, Bits w, Num w) => Endian w where
- untypedSwapBytes :: w -> w
- swapHalves :: forall w. Bits w => w -> w
- ixBytes :: forall w. Endian w => w -> [Word8]
- littleEndianIxBytes :: forall w. Prim w => Tagged w [Word8]
- bigEndianIxBytes :: forall w. Prim w => Tagged w [Word8]
- platformEndianness :: forall w. Endian w => Tagged w Endianness
- platformWordEndianness :: Endianness
- data ByteSwapped w
- swapBytes :: Endian w => w -> ByteSwapped w
- unswapBytes :: Endian w => ByteSwapped w -> w
- data Endianness
- reverseEndianness :: Endianness -> Endianness
Documentation
swapHalves :: forall w. Bits w => w -> wSource
littleEndianIxBytes :: forall w. Prim w => Tagged w [Word8]Source
bigEndianIxBytes :: forall w. Prim w => Tagged w [Word8]Source
platformEndianness :: forall w. Endian w => Tagged w EndiannessSource
Undefined when the platform is neither big nor little endian.
data ByteSwapped w Source
Show w => Show (ByteSwapped w) | |
Prim w => Prim (ByteSwapped w) |
swapBytes :: Endian w => w -> ByteSwapped wSource
unswapBytes :: Endian w => ByteSwapped w -> wSource