9 writes to _size
System.Formats.Tar (9)
System\Formats\Tar\TarHeader.cs (1)
129
_size
= other._size;
System\Formats\Tar\TarHeader.Read.cs (2)
159
_size
= size;
484
_size
= size,
System\Formats\Tar\TarHeader.Write.cs (6)
42
_size
= GetTotalDataBytesToWrite();
58
_size
= GetTotalDataBytesToWrite();
99
_size
= dataEndPosition - dataStartPosition;
151
_size
= dataEndPosition - dataStartPosition;
306
_size
= GetTotalDataBytesToWrite();
350
_size
= GetTotalDataBytesToWrite();
33 references to _size
System.Formats.Tar (33)
System\Formats\Tar\TarEntry.cs (1)
121
public long Length => _header._gnuSparseDataStream?.Length ?? (_header._dataStream is not null ? _header._dataStream.Length : _header.
_size
);
System\Formats\Tar\TarHeader.cs (2)
129
_size = other.
_size
;
265
AddOrRemoveNumericField(ea, PaxEaSize,
_size
, Octal12ByteFieldMaxValue, removeIfUnneeded);
System\Formats\Tar\TarHeader.Read.cs (21)
254
if (
_size
> 0)
284
TarHelpers.AdvanceStream(archiveStream,
_size
);
299
if (
_size
> 0)
301
TarHelpers.SkipBlockAlignmentPadding(archiveStream,
_size
);
330
if (
_size
> 0)
344
_dataStream = await GetDataStreamAsync(archiveStream, copyData,
_size
, cancellationToken).ConfigureAwait(false);
355
await TarHelpers.AdvanceStreamAsync(archiveStream,
_size
, cancellationToken).ConfigureAwait(false);
370
if (
_size
> 0)
372
await TarHelpers.SkipBlockAlignmentPaddingAsync(archiveStream,
_size
, cancellationToken).ConfigureAwait(false);
388
if (
_size
== 0)
396
TarHelpers.CopyBytes(archiveStream, copiedData,
_size
);
402
return new SubReadStream(archiveStream, archiveStream.CanSeek ? archiveStream.Position : 0,
_size
);
688
long size =
_size
;
715
if (
_size
!= 0)
718
byte[] buffer = ArrayPool<byte>.Shared.Rent((int)
_size
);
719
Memory<byte> memory = buffer.AsMemory(0, (int)
_size
);
730
if ((ulong)
_size
> (ulong)MaxMetadataBlockSize)
762
long size =
_size
;
790
if (
_size
!= 0)
793
byte[] buffer = ArrayPool<byte>.Shared.Rent((int)
_size
);
794
Memory<byte> memory = buffer.AsMemory(0, (int)
_size
);
System\Formats\Tar\TarHeader.Write.cs (5)
667
if (
_size
>= 0)
669
checksum += FormatNumeric(
_size
, buffer.Slice(FieldLocations.Size, FieldLengths.Size));
812
int paddingAfterData = TarHelpers.CalculatePadding(
_size
);
828
int paddingAfterData = TarHelpers.CalculatePadding(
_size
);
850
int paddingAfterData = TarHelpers.CalculatePadding(
_size
);
System\Formats\Tar\TarReader.cs (4)
212
else if (_previouslyReadEntry._header.
_size
> 0)
226
TarHelpers.SkipBlockAlignmentPadding(_archiveStream, _previouslyReadEntry._header.
_size
);
245
else if (_previouslyReadEntry._header.
_size
> 0)
259
await TarHelpers.SkipBlockAlignmentPaddingAsync(_archiveStream, _previouslyReadEntry._header.
_size
, cancellationToken).ConfigureAwait(false);