Skip to content

Commit

Permalink
libzstd 1.3.1 dev bd9c8ca
Browse files Browse the repository at this point in the history
  • Loading branch information
dscheg committed Aug 23, 2017
1 parent 3d43ab8 commit faa7792
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Reference
### Requirements

*ZstdNet* requires *Zstdlib* >= v1.0.0. Both 32-bit and 64-bit versions are supported.
The corresponding DLLs (compiled from v1.2.0 using Visual C++) are included in this repository.
The corresponding DLLs (compiled from v1.3.1 using Visual C++) are included in this repository.

### Exceptions

Expand Down
6 changes: 3 additions & 3 deletions ZstdNet/ThrowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public static size_t EnsureZstdSuccess(this size_t returnValue)
private static void ThrowException(size_t returnValue, string message)
{
var code = unchecked(0 - (uint) (ulong) returnValue); // Negate returnValue (UintPtr)
if (code == ZSTD_error_dstSize_tooSmall)
if(code == ZSTD_error_dstSize_tooSmall)
throw new InsufficientMemoryException(message);
throw new ZstdException(message);
}

// ReSharper disable once InconsistentNaming
// NOTE that this const may change on zstdlib update
private const int ZSTD_error_dstSize_tooSmall = 12;
// NOTE that this const may change on zstdlib update (error codes API is still considered unstable) https://github.com/facebook/zstd/blob/master/lib/common/zstd_errors.h
private const int ZSTD_error_dstSize_tooSmall = 70;

public static IntPtr EnsureZstdSuccess(this IntPtr returnValue)
{
Expand Down
2 changes: 1 addition & 1 deletion ZstdNet/ZstdNet.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.2.0</Version>
<Version>1.3.1</Version>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<Title>ZstdNet</Title>
<PackageId>ZstdNet</PackageId>
Expand Down
Binary file modified ZstdNet/build/x64/libzstd.dll
Binary file not shown.
Binary file modified ZstdNet/build/x86/libzstd.dll
Binary file not shown.

0 comments on commit faa7792

Please sign in to comment.