writeUint16 method
Writes an Uint16.
Implementation
int writeUint16(int n, [Endian endian = Endian.big]) {
final pos = bytesIO.position;
bytesIO.ensureCapacity(pos + 2);
_bytesData.setUint16(pos, n, endian);
bytesIO.incrementPosition(2);
return 2;
}