Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- chunkedBy :: Int -> ByteString -> [ByteString]
- class ToByteString a where
- class ToByteStrings a where
- resegment :: Int -> [ByteString] -> [ByteString]
- resegmentPadded :: Int -> [ByteString] -> [ByteString]
- rechunk :: Int -> [ByteString] -> [ByteString]
- hGetContentsChunkedBy :: Int -> Handle -> IO [ByteString]
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 # |
class ToByteStrings a where Source #
toByteStrings :: a -> [ByteString] Source #
Instances
resegment :: Int -> [ByteString] -> [ByteString] Source #
resegmentPadded :: Int -> [ByteString] -> [ByteString] Source #
rechunk :: Int -> [ByteString] -> [ByteString] Source #
hGetContentsChunkedBy :: Int -> Handle -> IO [ByteString] Source #