9 writes to _size
System.Formats.Tar (9)
System\Formats\Tar\TarHeader.cs (1)
109
_size
= other._size;
System\Formats\Tar\TarHeader.Read.cs (2)
138
_size
= size;
393
_size
= size,
System\Formats\Tar\TarHeader.Write.cs (6)
38
_size
= GetTotalDataBytesToWrite();
54
_size
= GetTotalDataBytesToWrite();
95
_size
= dataEndPosition - dataStartPosition;
147
_size
= dataEndPosition - dataStartPosition;
302
_size
= GetTotalDataBytesToWrite();
346
_size
= GetTotalDataBytesToWrite();
45 references to _size
System.Formats.Tar (45)
System\Formats\Tar\TarEntry.cs (1)
116
public long Length => _header._dataStream != null ? _header._dataStream.Length : _header.
_size
;
System\Formats\Tar\TarHeader.cs (1)
109
_size = other.
_size
;
System\Formats\Tar\TarHeader.Read.cs (28)
202
if (
_size
> 0)
219
TarHelpers.AdvanceStream(archiveStream,
_size
);
233
if (
_size
> 0)
235
TarHelpers.SkipBlockAlignmentPadding(archiveStream,
_size
);
264
if (
_size
> 0)
278
_dataStream = await GetDataStreamAsync(archiveStream, copyData,
_size
, cancellationToken).ConfigureAwait(false);
281
await TarHelpers.AdvanceStreamAsync(archiveStream,
_size
, cancellationToken).ConfigureAwait(false);
295
if (
_size
> 0)
297
await TarHelpers.SkipBlockAlignmentPaddingAsync(archiveStream,
_size
, cancellationToken).ConfigureAwait(false);
313
if (
_size
== 0)
321
TarHelpers.CopyBytes(archiveStream, copiedData,
_size
);
328
? new SeekableSubReadStream(archiveStream, archiveStream.Position,
_size
)
329
: new SubReadStream(archiveStream, 0,
_size
);
569
if (
_size
!= 0)
574
Span<byte> span =
_size
<= 256 ?
576
(buffer = ArrayPool<byte>.Shared.Rent((int)
_size
));
577
span = span.Slice(0, (int)
_size
);
595
if (
_size
!= 0)
598
byte[] buffer = ArrayPool<byte>.Shared.Rent((int)
_size
);
599
Memory<byte> memory = buffer.AsMemory(0, (int)
_size
);
610
if ((uint)
_size
> (uint)Array.MaxLength)
639
if (
_size
!= 0)
644
Span<byte> span =
_size
<= 256 ?
646
(buffer = ArrayPool<byte>.Shared.Rent((int)
_size
));
647
span = span.Slice(0, (int)
_size
);
666
if (
_size
!= 0)
669
byte[] buffer = ArrayPool<byte>.Shared.Rent((int)
_size
);
670
Memory<byte> memory = buffer.AsMemory(0, (int)
_size
);
System\Formats\Tar\TarHeader.Write.cs (7)
632
if (_dataStream != null &&
_size
>= 0)
634
checksum += FormatNumeric(
_size
, buffer.Slice(FieldLocations.Size, FieldLengths.Size));
777
int paddingAfterData = TarHelpers.CalculatePadding(
_size
);
793
int paddingAfterData = TarHelpers.CalculatePadding(
_size
);
815
int paddingAfterData = TarHelpers.CalculatePadding(
_size
);
922
if (
_size
> Octal12ByteFieldMaxValue)
924
ExtendedAttributes[PaxEaSize] =
_size
.ToString();
System\Formats\Tar\TarReader.cs (8)
212
else if (_previouslyReadEntry._header.
_size
> 0)
228
if (dataStream.Position < (_previouslyReadEntry._header.
_size
- 1))
230
long bytesToSkip = _previouslyReadEntry._header.
_size
- dataStream.Position;
235
TarHelpers.SkipBlockAlignmentPadding(_archiveStream, _previouslyReadEntry._header.
_size
);
254
else if (_previouslyReadEntry._header.
_size
> 0)
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);