writeUint16 method

void writeUint16(
  1. int i, [
  2. Endian endian = Endian.big
])

Implementation

void writeUint16(int i, [Endian endian = Endian.big]) {
  _ensureSize(2);
  _scratchData?.setUint16(_scratchOffset, i, endian);
  _scratchOffset += 2;
}