WireType enum

Protobuf wire types as defined by the Protocol Buffers binary format.

Inheritance
Available extensions

Values

varint → const WireType

0: Varint (variable-length integer) Used for: int32, int64, uint32, uint64, sint32, sint64, bool, enum

const WireType(0)
fixed64 → const WireType

1: 64-bit fixed-length Used for: fixed64, sfixed64, double

const WireType(1)
lengthDelimited → const WireType

2: Length-delimited Used for: string, bytes, embedded messages, packed repeated fields

const WireType(2)
fixed32 → const WireType

5: 32-bit fixed-length Used for: fixed32, sfixed32, float

const WireType(5)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

Methods

encode(int tag) List<int>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skip(List<int> data, int offset) int
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(List<int> data, int offset, {WireType? expected, int? expectedTag}) → (WireType, int, int)
fromValue(int type) WireType

Constants

values → const List<WireType>
A constant List of the values in this enum, in order of their declaration.