3 writes to _previouslyReadEntry
System.Formats.Tar (3)
System\Formats\Tar\TarReader.cs (3)
45
_previouslyReadEntry
= null;
150
_previouslyReadEntry
= entry;
303
_previouslyReadEntry
= entry;
16 references to _previouslyReadEntry
System.Formats.Tar (16)
System\Formats\Tar\TarReader.cs (16)
202
if (
_previouslyReadEntry
== null)
209
Debug.Assert(
_previouslyReadEntry
._header._endOfHeaderAndDataAndBlockAlignment > 0);
210
_archiveStream.Position =
_previouslyReadEntry
._header._endOfHeaderAndDataAndBlockAlignment;
212
else if (
_previouslyReadEntry
._header._size > 0)
219
if (
_previouslyReadEntry
._header._dataStream is not SubReadStream dataStream)
228
if (dataStream.Position < (
_previouslyReadEntry
._header._size - 1))
230
long bytesToSkip =
_previouslyReadEntry
._header._size - dataStream.Position;
235
TarHelpers.SkipBlockAlignmentPadding(_archiveStream,
_previouslyReadEntry
._header._size);
244
if (
_previouslyReadEntry
== null)
251
Debug.Assert(
_previouslyReadEntry
._header._endOfHeaderAndDataAndBlockAlignment > 0);
252
_archiveStream.Position =
_previouslyReadEntry
._header._endOfHeaderAndDataAndBlockAlignment;
254
else if (
_previouslyReadEntry
._header._size > 0)
261
if (
_previouslyReadEntry
._header._dataStream is not SubReadStream dataStream)
270
if (dataStream.Position < (
_previouslyReadEntry
._header._size - 1))
272
long bytesToSkip =
_previouslyReadEntry
._header._size - dataStream.Position;
277
await TarHelpers.SkipBlockAlignmentPaddingAsync(_archiveStream,
_previouslyReadEntry
._header._size, cancellationToken).ConfigureAwait(false);