writeUint16 method

void writeUint16(
  1. int x
)

Writes a Uint16 to the buffer.

Implementation

void writeUint16(int x) {
  writeUint8(x);
  writeUint8(x >> 8);
}