1 write to _dir
System.IO.Packaging (1)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
66
_dir
= new PieceDirectory(sortedPieceInfoList, zipStreamManager, access);
27 references to _dir
System.IO.Packaging (27)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (27)
69
Debug.Assert(
_dir
.GetStartOffset(GetCurrentPieceNumber()) == 0);
99
Stream pieceStream =
_dir
.GetStream(pieceNumber);
100
long pieceStreamRelativeOffset = _currentOffset -
_dir
.GetStartOffset(pieceNumber);
123
pieceStream =
_dir
.ResetStream(pieceNumber);
145
if (
_dir
.IsLastPiece(pieceNumber))
149
Debug.Assert(
_dir
.GetStartOffset(pieceNumber) == _currentOffset + totalBytesRead);
151
pieceStream =
_dir
.GetStream(pieceNumber);
162
pieceStream =
_dir
.ResetStream(pieceNumber);
261
lastPieceNumber =
_dir
.GetPieceNumberFromOffset(newLength - 1); // No need to use checked{] since newLength != 0
263
_dir
.SetLogicalLastPiece(lastPieceNumber);
266
Stream lastPieceStream =
_dir
.GetStream(lastPieceNumber);
268
Debug.Assert(newLength -
_dir
.GetStartOffset(lastPieceNumber) >= 0);
269
long lastPieceStreamSize = newLength -
_dir
.GetStartOffset(lastPieceNumber);
317
Stream pieceStream =
_dir
.GetStream(pieceNumber);
329
pieceStream.Seek(_currentOffset -
_dir
.GetStartOffset(pieceNumber), SeekOrigin.Begin);
335
if (!
_dir
.IsLastPiece(pieceNumber))
339
long maxPosition =
_dir
.GetStartOffset(pieceNumber + 1) - 1;
364
if (!
_dir
.IsLastPiece(pieceNumber) && totalBytesWritten < buffer.Length)
369
pieceStream =
_dir
.GetStream(pieceNumber);
405
_dir
.Flush();
422
public override bool CanRead => _closed ? false :
_dir
.GetStream(0).CanRead;
438
public override bool CanSeek => _closed ? false :
_dir
.GetStream(0).CanSeek;
455
public override bool CanWrite => _closed ? false :
_dir
.GetStream(0).CanWrite;
483
for (int pieceNumber = 0; pieceNumber <
_dir
.GetNumberOfPieces(); ++pieceNumber)
485
checked { length +=
_dir
.GetStream(pieceNumber).Length; }
500
_dir
.Close();
534
_currentPieceNumber =
_dir
.GetPieceNumberFromOffset(_currentOffset);