writeUint8 method

void writeUint8(
  1. int value
)

Writes an 8-bit unsigned integer.

Implementation

void writeUint8(int value) {
  ensureAvailableLength(1);

  final length = this._length;
  _byteData.setUint8(length, value);
  this._length = length + 1;
}