writeInt16 method
Writes a int16 i
in the buffer
i
: The value to writeendian
: The endianess, Endian.big by default
Implementation
void writeInt16(int i, [Endian endian = Endian.big]) {
_ensureSize(int16Size);
_scratchData!.setInt16(_scratchOffset, i, endian);
_scratchOffset += int16Size;
}