Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ public abstract partial class TarEntry
// Throws on Windows. Block devices are not supported on this platform.
private void ExtractAsBlockDevice(string destinationFileName)
{
Debug.Assert(EntryType is TarEntryType.BlockDevice or TarEntryType.CharacterDevice);
Debug.Assert(EntryType is TarEntryType.BlockDevice);
throw new InvalidOperationException(SR.IO_DeviceFiles_NotSupported);
}

// Throws on Windows. Character devices are not supported on this platform.
private void ExtractAsCharacterDevice(string destinationFileName)
{
Debug.Assert(EntryType is TarEntryType.BlockDevice or TarEntryType.CharacterDevice);
Debug.Assert(EntryType is TarEntryType.CharacterDevice);
throw new InvalidOperationException(SR.IO_DeviceFiles_NotSupported);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ private int WriteCommonFields(Span<byte> buffer, TarEntryType actualEntryType)

// Calculates how many data bytes should be written, depending on the position pointer of the stream.
// Only works if the stream is seekable.
public long GetTotalDataBytesToWrite()
internal long GetTotalDataBytesToWrite()
{
if (_dataStream == null)
{
Expand Down
Loading