Skip to main content

Module fields

Module fields 

Source

Structs§

FieldHeader
A decoded field header: the field ID and its wire type.

Enums§

FieldWireType
Field wire types within a block body.

Functions§

decode_bytes_value
Read a length-prefixed byte payload from the body.
decode_field_header
Decode a field header (field_id + wire_type) from the body.
decode_varint_value
Read a varint payload value from the body.
encode_bytes_field
Encode a bytes field (wire type 1).
encode_nested_field
Encode a nested field (wire type 2).
encode_varint_field
Encode a varint field (wire type 0).
skip_field
Skip a field’s payload based on its wire type.