void writeUint16(int i, [Endian endian = Endian.big]) { _ensureSize(2); _scratchData?.setUint16(_scratchOffset, i, endian); _scratchOffset += 2; }