Skip to main content

Module resolve

Module resolve 

Source
Expand description

Schema resolution: the piece that buys evolution without giving up zero-copy. A Resolver is built once per (writer schema, reader schema) pair and compiles, for every corresponding struct type, an access plan mapping each reader field ID to either a concrete byte slot in the writer’s layout (with an optional lossless widening) or Absent. After that, reading any number of messages costs no per-message resolution work.

Structs§

ElemPlan
FieldPlan
MapPlan
Read plan for a map<K, V>: how to load a key and a value out of each entry block, plus that block’s stride and the key/value offsets within it — all in the writer’s entry layout.
Resolver
StructPlan
UnionPlan
Read plan for a union<…>: how to load each variant and where its payload sits within the union block (in the writer’s layout). The u32 tag selects the variant.
VariantPlan

Enums§

FieldSource
Load
How to materialize a reader-visible value from writer bytes.
NumKind

Functions§

num_kind