Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data BitsVal a = BitsVal {}
- numToWord8Array :: Integral a => BitsVal a -> [Word8]
- word8sToIntegral :: Integral a => [Word8] -> a
- bitsValBiggerToCharUnsafe :: Integral a => BitsVal a -> ([Word8], BitsVal a)
- roundTo8 :: Integral a => BitsVal a -> BitsVal a
- bitsValsToBS8 :: Integral a => [BitsVal a] -> ByteString
Documentation
word8sToIntegral :: Integral a => [Word8] -> a Source #
bitsValsToBS8 :: Integral a => [BitsVal a] -> ByteString Source #
Converts a list of chars into a bytestring via construction of 8-bit chars. Pads with zeroes on the right if a sum is not divisible by 8.