Safe Haskell | None |
---|---|
Language | Haskell2010 |
HaskellWorks.Data.Bits.BitLength
Contents
Synopsis
- class BitLength v where
- bitLength :: v -> Count
- endPosition :: v -> Position
- elemBitLength :: (AtIndex v, BitLength (Elem v)) => v -> Count
- elemBitEnd :: (AtIndex v, BitLength (Elem v)) => v -> Position
Bit map
class BitLength v where Source #
Minimal complete definition
Methods
bitLength :: v -> Count Source #
Number of bits in a value including ones and zeros.
endPosition :: v -> Position Source #
Number of bits in a value including ones and zeros as a position.
Instances
BitLength Word16 Source # | |
BitLength Word32 Source # | |
BitLength Word64 Source # | |
BitLength Word8 Source # | |
BitLength Bool Source # | |
BitLength (Naive Word16) Source # | |
BitLength (Naive Word32) Source # | |
BitLength (Naive Word64) Source # | |
BitLength (Naive Word8) Source # | |
BitLength (Vector Word16) Source # | |
BitLength (Vector Word32) Source # | |
BitLength (Vector Word64) Source # | |
BitLength (Vector Word8) Source # | |
BitLength (Vector Word16) Source # | |
BitLength (Vector Word32) Source # | |
BitLength (Vector Word64) Source # | |
BitLength (Vector Word8) Source # | |
BitLength (Vector Bit) Source # | |
BitLength (Vector Bit) Source # | |
BitLength [Word16] Source # | |
BitLength [Word32] Source # | |
BitLength [Word64] Source # | |
BitLength [Word8] Source # | |
BitLength [Bool] Source # | |