writeInt16 method

void writeInt16(
  1. int integer
)

Writes a 16 bit integer to the buffer.

Implementation

void writeInt16(int integer) {
  _data.setInt16(_writePos, integer, Endian.little);
  _writePos += 2;
}