Skip to main content

emit_write

Function emit_write 

Source
pub fn emit_write(
    w: &mut CodeWriter,
    access: &str,
    ty: &ResolvedType,
    enc: &FieldEncoding,
    registry: &TypeRegistry,
    writer: &str,
)
Expand description

Emit code to write a value to a BitWriter.

access is the TypeScript expression for the value. writer is the variable name of the BitWriter (e.g. “w” or “payloadW”).