writeUint16 method
Writes a uint16 i
into the buffer
i
: The value to writeendian
: The endianess, Endian.big by default
Implementation
void writeUint16(int i, [Endian endian = Endian.big]) {
_ensureSize(uint16Size);
_scratchData!.setUint16(_scratchOffset, i, endian);
_scratchOffset += uint16Size;
}