Copyright | (c) Abhinav Gupta 2015 |
---|---|
License | BSD3 |
Maintainer | Abhinav Gupta <mail@abhinavg.net> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
This module provides a wrapper around Data.ByteString.Builder
that keeps
track of the final size of the generated ByteString.
Documentation
Used for building a long chain of ByteStrings.
run :: Build -> (Int64, Builder) Source
Returns the ByteString Builder for this build and its length.
byteString :: ByteString -> Build Source
Writes an arbitrary ByteString.