put package:cereal
Encode a value in the Put monad.
Encode a value in the Put monad.
The Put monad. A monad for efficiently constructing bytestrings.
Put merely lifts Builder into a Writer monad, applied to ().
Write a Float in big endian IEEE-754 format
Write a Float in little endian IEEE-754 format
Write a Double in big endian IEEE-754 format
Write a Double in little endian IEEE-754 format
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 Int16 in big endian format
O(1). Write a Int16 in native host order and host endianness.
For portability issues see putInthost.
Write a Int16 in little endian format
Write a Int32 in big endian format
O(1). Write a Int32 in native host order and host endianness.
For portability issues see putInthost.
Write a Int32 in little endian format
Write a Int64 in big endian format
O(1). Write a Int64 in native host order On a 32 bit machine we
write two host order Int32s, in big endian form. For portability
issues see putInthost.
Write a Int64 in little endian format
Efficiently write an int into the output buffer