Structs§
- Varint
Result - Result of parsing one protobuf varint from a byte slice.
- Wiretag
Result - Result of parsing one protobuf wire tag (field number + wire type).
Constants§
Functions§
- decode_
bool - Decode varint as bool (0 → false, 1 → true).
- decode_
double - Decode 8 little-endian bytes as f64.
- decode_
fixed32 - Decode 4 little-endian bytes as fixed32 (uint32).
- decode_
fixed64 - Decode 8 little-endian bytes as fixed64 (uint64).
- decode_
float - Decode 4 little-endian bytes as f32.
- decode_
int32 - Decode varint as int32 (two’s complement, low 32 bits).
- decode_
int64 - Decode varint as int64 (two’s complement).
- decode_
sfixed32 - Decode 4 little-endian bytes as sfixed32 (int32).
- decode_
sfixed64 - Decode 8 little-endian bytes as sfixed64 (int64).
- decode_
sint32 - Decode varint as sint32 (zig-zag).
- decode_
sint64 - Decode varint as sint64 (zig-zag).
- decode_
uint32 - Decode varint as uint32.
- decode_
uint64 - Decode varint as uint64.
- encode_
varint_ bytes - Encode a varint value (with optional overhang bytes) back to bytes.
- parse_
varint - Parse one protobuf varint starting at
startinbuf. - parse_
wiretag - Parse one wire tag starting at
startinbuf. - write_
bool_ field - Append a bool field (VARINT) to
buf— only written whentrue. - write_
fixed32_ field - Append a fixed-32 field to
buf. - write_
fixed64_ field - Append a fixed-64 field to
buf. - write_
len_ field - Append a LEN-delimited field to
buf. - write_
opt_ varint_ field - Append an optional VARINT field to
buf— only written whenSome. - write_
tag - Append a field tag (wire_type 0–5) to
buf. - write_
varint - Append a raw varint encoding of
valuetobuf. - write_
varint_ field - Append a VARINT field to
buf. - write_
varint_ ohb - Append a varint encoding of
value(with optional overhang bytes) directly intoout, with no allocation.