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