Skip to content

Commit

Permalink
updated GenericReader
Browse files Browse the repository at this point in the history
  • Loading branch information
NotOfficer committed Apr 1, 2024
1 parent e7e1949 commit 055c156
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Usmap.NET/Usmap.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<PackageProjectUrl>https://github.com/NotOfficer/Usmap.NET</PackageProjectUrl>
<RepositoryUrl>https://github.com/NotOfficer/Usmap.NET</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.1.0</AssemblyVersion>
<FileVersion>2.0.1.0</FileVersion>
<Version>2.0.1</Version>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GenericReader" Version="2.1.0" />
<PackageReference Include="GenericReader" Version="2.1.1" />
<PackageReference Include="NetEscapades.EnumGenerators" Version="1.0.0-beta08" PrivateAssets="all" />
<PackageReference Include="Oodle.NET" Version="2.0.1" />
</ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions src/Usmap.NET/Usmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ public Usmap(IGenericReader usmapReader, UsmapOptions? options, bool disposeRead
case EUsmapCompressionMethod.Brotli:
{
using var decoder = new BrotliDecoder();
var result = decoder.Decompress(compressedSpan, uncompressedMemory.Span, out var bytesConsumed,
out var bytesWritten);
var result = decoder.Decompress(compressedSpan, uncompressedMemory.Span, out var bytesConsumed, out var bytesWritten);
if (result != OperationStatus.Done)
throw new FileLoadException($"Invalid brotli .usmap decompress result: {result} | {bytesWritten} / {header.UncompressedSize} | {bytesConsumed} / {header.CompressedSize}");
break;
Expand Down

0 comments on commit 055c156

Please sign in to comment.