3 writes to _lastPieceIndex
WindowsBase (3)
Base\MS\Internal\IO\Packaging\PieceDirectory.cs (3)
182
_lastPieceIndex
= sortedPieceInfoList.Count - 1;
306
_lastPieceIndex
= pieceNumber;
476
_lastPieceIndex
= lastPiece;
14 references to _lastPieceIndex
WindowsBase (14)
Base\MS\Internal\IO\Packaging\PieceDirectory.cs (14)
228
while (pieceNumber <
_lastPieceIndex
)
248
Invariant.Assert(pieceNumber <=
_lastPieceIndex
, "We should have found the valid pieceNumber earlier");
285
return
_lastPieceIndex
== pieceNumber;
297
Invariant.Assert(pieceNumber <=
_lastPieceIndex
);
303
if (
_lastPieceIndex
> pieceNumber)
308
_indexOfLastPieceStreamInfoAccessed =
_lastPieceIndex
;
354
return
_lastPieceIndex
+ 1;
377
if (pieceNumber >
_lastPieceIndex
)
431
int pieceNumber =
_lastPieceIndex
+ 1;
438
_sortedPieceInfoList.RemoveRange(
_lastPieceIndex
+ 1, _sortedPieceInfoList.Count - (
_lastPieceIndex
+ 1));
445
int lastPiece =
_lastPieceIndex
+ 1;
455
if (
_lastPieceIndex
== 0 && _pieceStreamInfoList[0].Stream.Length == 0)
484
_lastPieceIndex
,