Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- chunkedBy :: Int -> ByteString -> [ByteString]
- class ToByteString a where
- toByteString :: a -> ByteString
- class ToByteStrings a where
- toByteStrings :: a -> [ByteString]
- mmap :: FilePath -> IO ByteString
- rechunk :: Int -> [ByteString] -> [ByteString]
- rechunkPadded :: Int -> [ByteString] -> [ByteString]
- resegment :: Int -> [ByteString] -> [ByteString]
- resegmentPadded :: 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 [Word64] Source # | |
Defined in HaskellWorks.Data.ByteString toByteString :: [Word64] -> 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
rechunk :: Int -> [ByteString] -> [ByteString] Source #
rechunkPadded :: Int -> [ByteString] -> [ByteString] Source #
resegment :: Int -> [ByteString] -> [ByteString] Source #
resegmentPadded :: Int -> [ByteString] -> [ByteString] Source #
hGetContentsChunkedBy :: Int -> Handle -> IO [ByteString] Source #