Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Builder
- byteString :: ByteString -> Builder
- byte :: Word8 -> Builder
- length :: Builder -> Int
- toByteString :: Builder -> ByteString
- toLazyByteString :: Builder -> ByteString
Documentation
A binary-tree-based datastructure optimized for aggregation of bytestrings using the O(1) appending operation.
Declaration
byteString :: ByteString -> Builder Source
Lifts a bytestring into the builder.
Execution
toByteString :: Builder -> ByteString Source
O(n). Converts the builder into a strict bytestring.
toLazyByteString :: Builder -> ByteString Source
O(n). Converts the builder into a lazy bytestring.