func (r *CompressingStoredFieldsIndexReader) relativeStartPointer(block, relativeChunk int) int64 { expected := r.avgChunkSizes[block] * int64(relativeChunk) delta := util.ZigZagDecodeLong(r.startPointersDeltas[block].Get(relativeChunk)) return expected + delta }
func (r *CompressingStoredFieldsIndexReader) relativeDocBase(block, relativeChunk int) int { expected := r.avgChunkDocs[block] * relativeChunk delta := util.ZigZagDecodeLong(r.docBasesDeltas[block].Get(relativeChunk)) return expected + int(delta) }