writeInt method

void writeInt(
  1. int value
)

Implementation

void writeInt(int value) {
  int zigzag = (value << 1) ^ (value >> 31);
  writeTag(SerializationTag.kInt32);
  writer.putVarint(BigInt.from(zigzag).toUnsigned(32).toInt());
}