Expand description
Low-level interface for reading and writing the pot format.
Structs
A floating point number that can safely convert between other number types using compile-time evaluation when possible.
An integer type that can safely convert between other number types using compile-time evaluation.
Enums
Functions
Reads an atom.
Reads an atom header (kind and argument).
Reads a Pot header. See write_header for more information. Returns the version number contained within.
Writes an atom header into writer.
Writes a Kind::Special atom with either Special::True or Special::False.
Writes an Kind::Bytes atom with the given value.
Writes an Kind::Float atom with the given value.
Writes an Kind::Float atom with the given value.
Writes the Pot header. A u32 written in big endian. The first three bytes
are ‘Pot’ (0x506F74), and the fourth byte is the version. The first
version of Pot is 0.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes a Kind::Special atom with Special::Named.
Writes a Kind::Special atom with Special::None.
Writes a Kind::Special atom.
Writes an Kind::Bytes atom with the bytes of the string.
Writes an Kind::UInt atom with the given value.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes an Kind::Int atom with the given value. Will encode in a smaller format if possible.
Writes a Kind::Special atom with Special::Unit.