WireType
Protobuf binary format wire types.
A wire type provides just enough information to find the length of the following value.
See https://developers.google.com/protocol-buffers/docs/encoding#structure
Enumeration Members
Section titled “Enumeration Members”Bit32:
5
Used for fixed32, sfixed32, float. Always 4 bytes with little-endian byte order.
Bit64:
1
Used for fixed64, sfixed64, double. Always 8 bytes with little-endian byte order.
EndGroup
Section titled “EndGroup”EndGroup:
4
End of a tag-delimited aggregate.
LengthDelimited
Section titled “LengthDelimited”LengthDelimited:
2
Used for string, bytes, embedded messages, packed repeated fields
Only repeated numeric types (types which use the varint, 32-bit, or 64-bit wire types) can be packed. In proto3, such fields are packed by default.
StartGroup
Section titled “StartGroup”StartGroup:
3
Start of a tag-delimited aggregate, such as a proto2 group, or a message in editions with message_encoding = DELIMITED.
Varint
Section titled “Varint”Varint:
0
Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum