Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data BufferBuilder a
- runBufferBuilder :: BufferBuilder () -> ByteString
- appendByte :: Word8 -> BufferBuilder ()
- appendChar8 :: Char -> BufferBuilder ()
- appendBS :: ByteString -> BufferBuilder ()
Documentation
data BufferBuilder a Source
BufferBuilder sequences actions that append to an implicit,
growable buffer. Use runBufferBuilder
to extract the resulting
buffer as a ByteString
runBufferBuilder :: BufferBuilder () -> ByteString Source
Runs a BufferBuilder and extracts its resulting contents as a ByteString
:: Word8 | byte to append to the buffer. |
-> BufferBuilder () |
:: Char | character to append to the buffer |
-> BufferBuilder () |
Appends a character to the buffer, truncating it to the bottom 8 bits.
:: ByteString |
|
-> BufferBuilder () |
Appends a ByteString to the buffer.