writeSignedArrayInRange method

void writeSignedArrayInRange(
  1. int id,
  2. List<int> values,
  3. int count,
  4. int lo,
  5. int hi,
)

The signed twin of writeUnsignedArrayInRange: the bound is compared before the zig-zag step.

Implementation

void writeSignedArrayInRange(
  int id,
  List<int> values,
  int count,
  int lo,
  int hi,
) {
  _checkCount(count, values);
  _writeHeader(id, WireType.arraySigned);
  _writeVarint(count);
  _writeSignedInRange(id, values, count, lo, hi);
}