put package:binary

Encode a value in the Put monad.
Encode a value in the Put monad.
Replace the current chunk.
Put merely lifts Builder into a Writer monad, applied to ().
The Put monad. A monad for efficiently constructing lazy bytestrings.
Encode a list of values in the Put monad. The default implementation may be overridden to be more efficient but must still have the same encoding format.
Efficiently write a byte into the output buffer
Write a character using UTF-8 encoding.
Write a Int16 in big endian format
Write a Int16 in native host order and host endianness. 2 bytes will be written, unaligned.
Write a Int16 in little endian format
Write a Int32 in big endian format
Write a Int32 in native host order and host endianness. 4 bytes will be written, unaligned.
Write a Int32 in little endian format
Write a Int64 in big endian format
Write a Int64 in native host order. On a 32 bit machine we write two host order Int32s, in big endian form. 8 bytes will be written, unaligned.
Write a Int64 in little endian format
O(1). A Builder taking 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 Int 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.
Write a String using UTF-8 encoding.
Write a Word16 in big endian format
Write a Word16 in native host order and host endianness. 2 bytes will be written, unaligned.
Write a Word16 in little endian format
Write a Word32 in big endian format
Write a Word32 in native host order and host endianness. 4 bytes will be written, unaligned.