3 writes to _lastPieceIndex
System.IO.Packaging (3)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (3)
126
_lastPieceIndex
= sortedPieceInfoList.Count - 1;
266
_lastPieceIndex
= pieceNumber;
433
_lastPieceIndex
= lastPiece;
13 references to _lastPieceIndex
System.IO.Packaging (13)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (13)
170
while (pieceNumber <
_lastPieceIndex
)
192
Debug.Assert(pieceNumber <=
_lastPieceIndex
, "We should have found the valid pieceNumber earlier");
245
return
_lastPieceIndex
== pieceNumber;
257
Debug.Assert(pieceNumber <=
_lastPieceIndex
);
263
if (
_lastPieceIndex
> pieceNumber)
269
_indexOfLastPieceStreamInfoAccessed =
_lastPieceIndex
;
319
return
_lastPieceIndex
+ 1;
332
if (pieceNumber >
_lastPieceIndex
)
392
int pieceNumber =
_lastPieceIndex
+ 1;
399
_sortedPieceInfoList.RemoveRange(
_lastPieceIndex
+ 1, _sortedPieceInfoList.Count - (
_lastPieceIndex
+ 1));
406
int lastPiece =
_lastPieceIndex
+ 1;
414
if (
_lastPieceIndex
== 0 && _pieceStreamInfoList[0].Stream.Length == 0)