putUnsigned method

void putUnsigned(
  1. int fieldId,
  2. int value
)

Writes an unsigned varint field without zigzag.

Implementation

void putUnsigned(int fieldId, int value) {
  if (value < 0) {
    throw ArgumentError.value(value, 'value', 'must not be negative');
  }
  _beginEntry(fieldId, VxsWire.varint);
  _writeVarint(value);
}