writeUint16 method

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

Writes a 16-bit unsigned integer.

Implementation

void writeUint16(int value, [Endian endian = Endian.big]) {
  ensureAvailableLength(2);

  final length = this._length;
  _byteData.setUint16(length, value, endian);
  this._length = length + 2;
}