Module write

Module write 

Source
Expand description

Forward-only writing into pooled BytesMut.

Structsยง

Builder
Owns one pooled buffer. Build a message with root(), then:
FixedListW
Known-count list of all-scalar elements (see TableW::tables_fixed). On drop the count is set to the number pushed.
FixedW
Writer for a table whose fields are all scalars (no pointers). The fixed part is a [u8; N] known at compile time, so field writes with constant offsets compile without bounds checks.
ScalarListW
Unknown-count scalar list writer; count is written on drop.
StreamListW
Unknown-count table list writer; finalized by close() or on drop.
TableListW
Known-count list writer. On drop the count is set to the number pushed.
TableW
Writer for one table. The fixed part lives in aux when it is a streaming list element, otherwise in main; variable data always goes to main.