Lines Matching refs:_nextIndex
78 assert(_firstIndex == _nextIndex, "empty buffer"); \
94 assert(_spoolHead != _spoolTail || _firstIndex < _nextIndex,
109 assert(_spoolTail == NULL && _nextIndex == 1,
156 assert(_spoolTail->bufferSize > _nextIndex, "Off by one error at tail?");
157 _spoolTail->displacedHdr[_nextIndex] = hdr;
159 if (++_nextIndex == _spoolTail->bufferSize) { // last location in this block
166 _nextIndex = 1;
182 _nextIndex = 1;
229 assert(_spoolHead == _spoolTail && _firstIndex == _nextIndex,
231 _firstIndex = _nextIndex = 1;
238 assert(_spoolHead == _spoolTail && _firstIndex == _nextIndex,
240 _firstIndex = _nextIndex = 1;
248 assert(_spoolHead == _spoolTail && _firstIndex == _nextIndex,
272 // When _spoolTail is not NULL, then the slot <_spoolTail, _nextIndex>
277 // [ <_spoolHead, _firstIndex>, <_spoolTail, _nextIndex> )
322 guarantee(_spoolTail != NULL || _nextIndex == 1,
323 "Inconsistency between _spoolTail and _nextIndex");
325 // _spoolHead and we undercounted (_nextIndex-1) worth of
328 // second: - (_firstIndex - 1) + (_nextIndex - 1)
329 numDisplacedHdrs += (_nextIndex - _firstIndex);
337 _firstIndex, _nextIndex);