haskus-binary-1.5: Haskus binary format manipulation

Safe HaskellNone
LanguageHaskell2010

Haskus.Binary.Bits.Helper

Synopsis

Documentation

bitOffset :: Word -> Word Source #

Compute bit offset (equivalent to x mod 8 but faster)

byteOffset :: Word -> Word Source #

Compute byte offset (equivalent to x div 8 but faster)