writeUint8 method

void writeUint8(
  1. int i
)

Writes a Uint8 i into the buffer

  • i: The value to write

Implementation

void writeUint8(int i) {
  _ensureSize(uint8Size);
  _scratchData!.setUint8(_scratchOffset, i);
  _scratchOffset += uint8Size;
}