- class EndianSensitive α where
- swapEndian :: α -> α
- toBigEndian :: EndianSensitive α => α -> α
- fromBigEndian :: EndianSensitive α => α -> α
- toLittleEndian :: EndianSensitive α => α -> α
- fromLittleEndian :: EndianSensitive α => α -> α
Documentation
class EndianSensitive α whereSource
Raw, endian-sensitive data
swapEndian :: α -> αSource
Change the endianness of the argument
toBigEndian :: EndianSensitive α => α -> αSource
Convert from the native format to big-endian
fromBigEndian :: EndianSensitive α => α -> αSource
Convert from big-endian to the native format
toLittleEndian :: EndianSensitive α => α -> αSource
Convert from the native format to little-endian
fromLittleEndian :: EndianSensitive α => α -> αSource
Convert from little-endian to the native format