3 writes to _currentSegmentIndex
System.Formats.Tar (3)
System\Formats\Tar\GnuSparseStream.cs (3)
350_currentSegmentIndex = result >= 0 ? result : ~result; 358_currentSegmentIndex = result >= 0 ? result : ~result; 377_currentSegmentIndex++;
7 references to _currentSegmentIndex
System.Formats.Tar (7)
System\Formats\Tar\GnuSparseStream.cs (7)
340if (_currentSegmentIndex >= _segments.Length) 355if (virtualPosition < _segments[_currentSegmentIndex].Offset) 357int result = BinarySearchSegment(virtualPosition, 0, _currentSegmentIndex - 1); 363while (_currentSegmentIndex < _segments.Length) 365var (offset, length) = _segments[_currentSegmentIndex]; 369return ~_currentSegmentIndex; 374return _currentSegmentIndex;