/* * If both of the vectors are empty, get more data for them. */ private void ResetVectors() { // If we're done, no further checking needed if (_completed) { return; } // Checks if we have run out of references if (_referenceIndex != 0 && _referenceIndex >= _referenceCount) { _references.Clear(); _referenceCount = 0; _referenceIndex = 0; } // Checks if we have run out of entries if (_entryIndex != 0 && _entryIndex >= _entryCount) { SupportClass.SetSize(_entries, 0); _entryCount = 0; _entryIndex = 0; } // If no data at all, must reload enumeration if (_referenceIndex == 0 && _referenceCount == 0 && _entryIndex == 0 && _entryCount == 0) { _completed = BatchOfResults; } }
/* * If both of the vectors are empty, get more data for them. */ private void resetVectors() { // If we're done, no further checking needed if (completed) { return; } // Checks if we have run out of references if ((referenceIndex != 0) && (referenceIndex >= referenceCount)) { SupportClass.SetSize(references, 0); referenceCount = 0; referenceIndex = 0; } // Checks if we have run out of entries if ((entryIndex != 0) && (entryIndex >= entryCount)) { SupportClass.SetSize(entries, 0); entryCount = 0; entryIndex = 0; } // If no data at all, must reload enumeration if ((referenceIndex == 0) && (referenceCount == 0) && (entryIndex == 0) && (entryCount == 0)) { completed = BatchOfResults; } }