Copyright | (c) Andrey Mulik 2019 |
---|---|
License | BSD-style |
Maintainer | work.a.mulik@gmail.com |
Portability | non-portable (GHC Extensions) |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
SDP.ByteString.Lazy provides sdp
instances for lazy ByteString
.
Synopsis
- module System.IO.Classes
- module SDP.Indexed
- module SDP.Sort
- data ByteString
- type LByteString = ByteString
- fromStrict :: ByteString -> ByteString
- toStrict :: ByteString -> ByteString
- fromChunks :: [ByteString] -> ByteString
- toChunks :: ByteString -> [ByteString]
Exports
module System.IO.Classes
module SDP.Indexed
module SDP.Sort
ByteString
data ByteString #
A space-efficient representation of a Word8
vector, supporting many
efficient operations.
A lazy ByteString
contains 8-bit bytes, or by using the operations
from Data.ByteString.Lazy.Char8 it can be interpreted as containing
8-bit characters.
Instances
type LByteString = ByteString Source #
Type synonym to avoid ambiguity.
fromStrict :: ByteString -> ByteString #
O(1) Convert a strict ByteString
into a lazy ByteString
.
toStrict :: ByteString -> ByteString #
O(n) Convert a lazy ByteString
into a strict ByteString
.
Note that this is an expensive operation that forces the whole lazy ByteString into memory and then copies all the data. If possible, try to avoid converting back and forth between strict and lazy bytestrings.
fromChunks :: [ByteString] -> ByteString #
O(c) Convert a list of strict ByteString
into a lazy ByteString
toChunks :: ByteString -> [ByteString] #
O(c) Convert a lazy ByteString
into a list of strict ByteString