Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- chunkedBy :: Int -> ByteString -> [ByteString]
- class ToByteString a where
Documentation
chunkedBy :: Int -> ByteString -> [ByteString] Source #
Chunk a bs into list of smaller byte strings of no more than
n elements
class ToByteString a where Source #
toByteString :: a -> ByteString Source #
Instances
ToByteString ByteString Source # | |
Defined in HaskellWorks.Data.ByteString toByteString :: ByteString -> ByteString Source # | |
ToByteString (Vector Word8) Source # | |
Defined in HaskellWorks.Data.ByteString toByteString :: Vector Word8 -> ByteString Source # | |
ToByteString (Vector Word16) Source # | |
Defined in HaskellWorks.Data.ByteString toByteString :: Vector Word16 -> ByteString Source # | |
ToByteString (Vector Word32) Source # | |
Defined in HaskellWorks.Data.ByteString toByteString :: Vector Word32 -> ByteString Source # | |
ToByteString (Vector Word64) Source # | |
Defined in HaskellWorks.Data.ByteString toByteString :: Vector Word64 -> ByteString Source # |