cognimeta-utils-0.1.2: Utilities for Cognimeta products (such as perdure). API may change often.

Safe HaskellNone

Cgm.System.Endian

Synopsis

Documentation

class (Prim w, Bits w, Num w) => Endian w whereSource

Methods

untypedSwapBytes :: w -> wSource

swapHalves :: forall w. Bits w => w -> wSource

ixBytes :: forall w. Endian w => 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

Instances

Show w => Show (ByteSwapped w) 
Prim w => Prim (ByteSwapped w)