1 write to _dir
WindowsBase (1)
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (1)
76
_dir
= new PieceDirectory(sortedPieceInfoList, mode, access);
25 references to _dir
WindowsBase (25)
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (25)
79
Invariant.Assert(
_dir
.GetStartOffset(GetCurrentPieceNumber()) == 0);
116
Stream pieceStream =
_dir
.GetStream(pieceNumber);
121
pieceStream.Seek(_currentOffset -
_dir
.GetStartOffset(pieceNumber), SeekOrigin.Begin);
133
if (
_dir
.IsLastPiece(pieceNumber))
137
Invariant.Assert(
_dir
.GetStartOffset(pieceNumber) == _currentOffset + totalBytesRead);
139
pieceStream =
_dir
.GetStream(pieceNumber);
224
lastPieceNumber =
_dir
.GetPieceNumberFromOffset(newLength - 1); // No need to use checked{] since newLength != 0
226
_dir
.SetLogicalLastPiece(lastPieceNumber);
229
Stream lastPieceStream =
_dir
.GetStream(lastPieceNumber);
231
Debug.Assert(newLength -
_dir
.GetStartOffset(lastPieceNumber) >= 0);
232
long lastPieceStreamSize = newLength -
_dir
.GetStartOffset(lastPieceNumber);
265
Stream pieceStream =
_dir
.GetStream(pieceNumber);
270
pieceStream.Seek(_currentOffset -
_dir
.GetStartOffset(pieceNumber), SeekOrigin.Begin);
276
if (!
_dir
.IsLastPiece(pieceNumber))
280
long maxPosition =
_dir
.GetStartOffset(pieceNumber+1) - 1;
296
if (!
_dir
.IsLastPiece(pieceNumber) && totalBytesWritten < count)
301
pieceStream =
_dir
.GetStream(pieceNumber);
330
_dir
.Flush();
359
return _closed ? false :
_dir
.GetStream(0).CanRead;
383
return _closed ? false :
_dir
.GetStream(0).CanSeek;
408
return _closed ? false :
_dir
.GetStream(0).CanWrite;
443
for (int pieceNumber = 0; pieceNumber <
_dir
.GetNumberOfPieces(); ++pieceNumber)
445
checked { length +=
_dir
.GetStream(pieceNumber).Length; }
480
_dir
.Close();
522
_currentPieceNumber =
_dir
.GetPieceNumberFromOffset(_currentOffset);