void writeUint32(int i, [Endian endian = Endian.big]) { _ensureSize(4); _scratchData?.setUint32(_scratchOffset, i, endian); _scratchOffset += 4; }