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