Module bonsaidb::core::transmog_pot::pot::format    
Expand description
Low-level interface for reading and writing the pot format.
Structs
- An encodedKind, argument, and optional contained value.
- 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.
- An unknownSpecialwas encountered.
Enums
- The type of an atom.
- A value contained within anAtom.
- A special value type.
Functions
- Reads an atom.
- Reads an atom header (kind and argument).
- Reads a Pot header. Seewrite_headerfor more information. Returns the version number contained within.
- Writes an atom header intowriter.
- Writes anKind::Bytesatom with the given value.
- Writes anKind::Floatatom with the given value.
- Writes anKind::Floatatom 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 anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes aKind::Specialatom withSpecial::Named.
- Writes aKind::Specialatom withSpecial::None.
- Writes aKind::Specialatom.
- Writes anKind::Bytesatom with the bytes of the string.
- Writes anKind::UIntatom with the given value.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes anKind::Intatom with the given value. Will encode in a smaller format if possible.
- Writes aKind::Specialatom withSpecial::Unit.