Lines Matching refs:fGapIndex
34 fGapIndex(fItemCount),
35 fGapCount(fBufferCount - fGapIndex),
61 if (inAtIndex != fGapIndex)
67 memcpy(fBuffer + fGapIndex, inText, inNumItems);
70 fGapIndex += inNumItems;
97 if (inAtIndex != fGapIndex)
104 if (file->ReadAt(fileOffset, fBuffer + fGapIndex, inNumItems) > 0) {
106 fGapIndex += inNumItems;
147 bool isStartBeforeGap = fromOffset < fGapIndex;
148 bool isEndBeforeGap = (fromOffset + numBytes - 1) < fGapIndex;
267 bool isStartBeforeGap = (offset < fGapIndex);
268 bool isEndBeforeGap = ((offset + length - 1) < fGapIndex);
281 int32 beforeLen = fGapIndex - offset;
285 memcpy(buffer + beforeLen, fBuffer + fGapIndex + fGapCount, afterLen);
310 if (toIndex == fGapIndex)
320 if (toIndex > fGapIndex) {
321 srcIndex = fGapIndex + fGapCount;
322 dstIndex = fGapIndex;
323 count = toIndex - fGapIndex;
327 count = fGapIndex- toIndex;
333 fGapIndex = toIndex;
344 memmove(fBuffer + fGapIndex + inCount, fBuffer + fGapIndex + fGapCount,
345 fBufferCount - (fGapIndex + fGapCount));
358 memmove(fBuffer + fGapIndex + inCount, fBuffer + fGapIndex + fGapCount,
359 fBufferCount - (fGapIndex + fGapCount));