Modules
encoding 🔒
A permanent storage encoding for rows.
Nested message and enum types in
ProtoDatum
.Macros
Structs
A sequence of Datums
A mapping from string keys to Datums
Represents a single
Datum
, appropriate to be nested inside other
Datum
s.See [dec::to_packed_bcd] and http://speleotrove.com/decimal/dnpack.html for
more information on this format.
A packed representation for
Datum
s.RowArena
is used to hold on to temporary Row
s for functions like eval
that need to create complex Datum
s but don’t have a Row
to put them in yet.A wrapper around a byte slice that guarantees the data are row-formatted.
Enums
Constants
FIELDS 🔒
Functions
Number of bytes required by a list of datums. This computes the size that would be required if
the given datums were packed into a list.
Number of bytes required by the datum.
Number of bytes required by a sequence of datums.
read_datum 🔒 ⚠
Read a datum starting at byte
offset
.Read a data whose length is encoded in the row before its contents.
Read a byte slice starting at byte
offset
.Return the number of bytes these Datums would use if packed as a Row.