writeInt16 method

void writeInt16(
  1. int i, [
  2. Endian endian = Endian.big
])

Writes a int16 i in the buffer

  • i: The value to write
  • endian: The endianess, Endian.big by default

Implementation

void writeInt16(int i, [Endian endian = Endian.big]) {
  _ensureSize(int16Size);
  _scratchData!.setInt16(_scratchOffset, i, endian);
  _scratchOffset += int16Size;
}