|License||BSD3-style (see LICENSE)|
|Maintainer||Lennart Kolmodin <email@example.com>|
|Portability||Portable to Hugs and GHC. Requires MPTCs|
The Put monad. A monad for efficiently constructing lazy bytestrings.
Put merely lifts Builder into a Writer monad, applied to ().
The PutM type. A Writer monad over the efficient Builder monoid.
Put monad with a serialiser
Put monad with a serialiser and get its result
Pop the ByteString we have constructed so far, if any, yielding a new chunk in the result ByteString.
Efficiently write a byte into the output buffer
An efficient primitive to write a strict ByteString into the output buffer. It flushes the current buffer, and writes the argument into a new chunk.
Write a lazy ByteString efficiently, simply appending the lazy ByteString chunks to the output buffer
Write a Word16 in big endian format
Write a Word32 in big endian format
Write a Word64 in big endian format
Write a Word16 in little endian format
Write a Word32 in little endian format
Write a Word64 in little endian format
O(1). Write a single native machine word. The word is written in host order, host endian form, for the machine you're on. On a 64 bit machine the Word is an 8 byte value, on a 32 bit machine, 4 bytes. Values written this way are not portable to different endian or word sized machines, without conversion.
O(1). Write a Word16 in native host order and host endianness. For portability issues see
O(1). Write a Word32 in native host order and host endianness. For portability issues see
O(1). Write a Word64 in native host order On a 32 bit machine we write two host order Word32s, in big endian form. For portability issues see
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).