3 writes to _currentSegmentIndex
System.Formats.Tar (3)
System\Formats\Tar\GnuSparseStream.cs (3)
452_currentSegmentIndex = result >= 0 ? result : ~result; 460_currentSegmentIndex = result >= 0 ? result : ~result; 479_currentSegmentIndex++;
7 references to _currentSegmentIndex
System.Formats.Tar (7)
System\Formats\Tar\GnuSparseStream.cs (7)
442if (_currentSegmentIndex >= _segments.Length) 457if (virtualPosition < _segments[_currentSegmentIndex].Offset) 459int result = BinarySearchSegment(virtualPosition, 0, _currentSegmentIndex - 1); 465while (_currentSegmentIndex < _segments.Length) 467var (offset, length) = _segments[_currentSegmentIndex]; 471return ~_currentSegmentIndex; 476return _currentSegmentIndex;