internal MMapIndexInput(MMapDirectory outerInstance, string resourceDescription, FileStream fc) : base(resourceDescription, null, fc.Length, outerInstance.chunkSizePower, true) { this.outerInstance = outerInstance; this.fc = fc ?? throw new ArgumentNullException("fc"); this.SetBuffers(outerInstance.Map(this, fc, 0, fc.Length)); }
internal MMapIndexInput(MMapDirectory outerInstance, string resourceDescription, FileStream fc) : base(resourceDescription, null, fc.Length, outerInstance.chunkSizePower, true) { this.fc = fc ?? throw new ArgumentNullException(nameof(fc)); // LUCENENET specific - changed from IllegalArgumentException to ArgumentNullException (.NET convention) this.SetBuffers(outerInstance.Map(this, fc, 0, fc.Length)); }