Beispiel #1
0
 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));
 }
Beispiel #2
0
 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));
 }