12 references to RecordSize
System.Formats.Tar (12)
System\Formats\Tar\TarHeader.Read.cs (3)
24Span<byte> buffer = stackalloc byte[TarHelpers.RecordSize]; 45byte[] rented = ArrayPool<byte>.Shared.Rent(minimumLength: TarHelpers.RecordSize); 46Memory<byte> buffer = rented.AsMemory(0, TarHelpers.RecordSize); // minimumLength means the array could've been larger
System\Formats\Tar\TarHeader.Write.cs (3)
780Debug.Assert(paddingAfterData <= TarHelpers.RecordSize); 782Span<byte> zeros = stackalloc byte[TarHelpers.RecordSize]; 796Debug.Assert(paddingAfterData <= TarHelpers.RecordSize);
System\Formats\Tar\TarHelpers.cs (1)
127long ceilingMultipleOfRecordSize = ((RecordSize - 1) | (size - 1)) + 1;
System\Formats\Tar\TarWriter.cs (5)
281Span<byte> buffer = stackalloc byte[TarHelpers.RecordSize]; 322byte[] rented = ArrayPool<byte>.Shared.Rent(minimumLength: TarHelpers.RecordSize); 323Memory<byte> buffer = rented.AsMemory(0, TarHelpers.RecordSize); // minimumLength means the array could've been larger 346Span<byte> emptyRecord = stackalloc byte[TarHelpers.RecordSize]; 358const int TwoRecordSize = TarHelpers.RecordSize * 2;