Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.ByteString.ToolsYj
Synopsis
- fromBits :: Bits b => b -> ByteString
- fromBits' :: FiniteBits b => b -> ByteString
- toBits :: Bits b => ByteString -> b
- toBits' :: FiniteBits b => ByteString -> Maybe b
- fromBitsBE' :: FiniteBits b => b -> ByteString
- toBitsBE :: Bits b => ByteString -> b
- splitAt' :: Int -> ByteString -> Maybe (ByteString, ByteString)
FROM/TO BITS
fromBits :: Bits b => b -> ByteString Source #
fromBits' :: FiniteBits b => b -> ByteString Source #
toBits :: Bits b => ByteString -> b Source #
toBits' :: FiniteBits b => ByteString -> Maybe b Source #
FROM/TO BITS -- BIG ENDIEN
fromBitsBE' :: FiniteBits b => b -> ByteString Source #
toBitsBE :: Bits b => ByteString -> b Source #
SPLIT AT
splitAt' :: Int -> ByteString -> Maybe (ByteString, ByteString) Source #