text: public void SetBytesRef(BytesRef term, int textStart){var bytes = term.Bytes = buffers[textStart >> BYTE_BLOCK_SHIFT];var pos = textStart & BYTE_BLOCK_MASK;if ((bytes[pos] & 0x80) == 0){term.Length = bytes[pos];term.Offset = pos + 1;}else{term.Length = (bytes[pos] & 0x7f) + ((bytes[pos + 1] & 0xff) << 7);term.Offset = pos + 2;}Debug.Assert(term.Length >= 0);}