wireType property

int get wireType

The VxsWire constant this type is encoded with.

Implementation

int get wireType => switch (this) {
  VxsType.boolean || VxsType.int32 || VxsType.int64 => VxsWire.varint,
  VxsType.float32 => VxsWire.fixed32,
  VxsType.float64 => VxsWire.fixed64,
  VxsType.string ||
  VxsType.bytes ||
  VxsType.stringList ||
  VxsType.intList ||
  VxsType.doc => VxsWire.lengthDelimited,
};