/// <summary> /// Copy compressed data. /// </summary> internal void CopyCompressedData(DataOutput @out) { Debug.Assert(OuterInstance.Version == CompressingStoredFieldsWriter.VERSION_CURRENT); long chunkEnd = DocBase + ChunkDocs == OuterInstance.NumDocs ? OuterInstance.MaxPointer : OuterInstance.IndexReader.GetStartPointer(DocBase + ChunkDocs); @out.CopyBytes(FieldsStream, chunkEnd - FieldsStream.FilePointer); }
/// <summary> /// Copy compressed data. /// </summary> internal void CopyCompressedData(DataOutput @out) { Debug.Assert(outerInstance.Version == CompressingStoredFieldsWriter.VERSION_CURRENT); long chunkEnd = docBase + chunkDocs == outerInstance.numDocs ? outerInstance.maxPointer : outerInstance.indexReader.GetStartPointer(docBase + chunkDocs); @out.CopyBytes(fieldsStream, chunkEnd - fieldsStream.GetFilePointer()); }
/// <summary> /// Copy compressed data. /// </summary> internal void CopyCompressedData(DataOutput @out) { if (Debugging.AssertsEnabled) { Debugging.Assert(outerInstance.Version == CompressingStoredFieldsWriter.VERSION_CURRENT); } long chunkEnd = docBase + chunkDocs == outerInstance.numDocs ? outerInstance.maxPointer : outerInstance.indexReader.GetStartPointer(docBase + chunkDocs); @out.CopyBytes(fieldsStream, chunkEnd - fieldsStream.Position); // LUCENENET specific: Renamed from getFilePointer() to match FileStream }