Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use System.Buffers Nuget package #478

Merged
merged 2 commits into from
Sep 17, 2019
Merged
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
5 changes: 3 additions & 2 deletions src/SharpCompress/Archives/Rar/FileInfoRarArchiveVolume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#if !NO_FILE
using System.Collections.Generic;
using System.IO;
using System.Linq;
using SharpCompress.Common.Rar;
using SharpCompress.Common.Rar.Headers;
using SharpCompress.IO;
Expand All @@ -18,7 +19,7 @@ internal FileInfoRarArchiveVolume(FileInfo fileInfo, ReaderOptions options)
: base(StreamingMode.Seekable, fileInfo.OpenRead(), FixOptions(options))
{
FileInfo = fileInfo;
FileParts = GetVolumeFileParts().ToReadOnly();
FileParts = GetVolumeFileParts().ToArray().ToReadOnly();
}

private static ReaderOptions FixOptions(ReaderOptions options)
Expand All @@ -43,4 +44,4 @@ internal override IEnumerable<RarFilePart> ReadFileParts()
}
}
}
#endif
#endif
119 changes: 0 additions & 119 deletions src/SharpCompress/Buffers/ArrayPool.cs

This file was deleted.

144 changes: 0 additions & 144 deletions src/SharpCompress/Buffers/DefaultArrayPool.cs

This file was deleted.

Loading