Expand description
A binary writing and layout implementation using separate write and layout passes.
An object’s size is defined as the difference between the writer position before and after the first pass and does not need to be user defined. Custom implementations of Xc3Write should ensure the write head points after the data when the function returns to ensure correct size calculations.
Structs§
Traits§
- The write pass that writes fields and placeholder offsets.
- The layout pass that updates and writes data for all fields in Xc3Write::Offsets recursively.
Functions§
- A complete write uses a two pass approach to handle offsets.