haskus-binary-1.2: Haskus binary format manipulation

Safe HaskellSafe
LanguageHaskell2010

Haskus.Format.Binary.Bits.Order

Description

Bit orderings

Synopsis

Documentation

data BitOrder Source #

Bit order

The first letter indicates the outer bit ordering, i.e. how bytes are filled:

  • B?: from left to right (B is for BigEndian)
  • L?: from right to left (L is for LittleEndian)

The second letter indicates the inner bit ordering, i.e. how words are stored:

  • ?B: the most significant bit is stored first (in the outer bit order!)
  • ?L: the least-significant bit is stored first (in the outer bit order!)

E.g. two successive words of 5 bits: ABCDE, VWXYZ BB: ABCDEVWX YZxxxxxx BL: EDCBAZYX WVxxxxxx LB: XWVEDCBA xxxxxxZY LL: XYZABCDE xxxxxxVW

Constructors

BB 
LB 
BL 
LL 
Instances
Eq BitOrder Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Order

Show BitOrder Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Order