Skip to content

Commit faa7792

Browse files
committed
libzstd 1.3.1 dev bd9c8ca
1 parent 3d43ab8 commit faa7792

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Reference
3737
### Requirements
3838

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

4242
### Exceptions
4343

ZstdNet/ThrowHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public static size_t EnsureZstdSuccess(this size_t returnValue)
2323
private static void ThrowException(size_t returnValue, string message)
2424
{
2525
var code = unchecked(0 - (uint) (ulong) returnValue); // Negate returnValue (UintPtr)
26-
if (code == ZSTD_error_dstSize_tooSmall)
26+
if(code == ZSTD_error_dstSize_tooSmall)
2727
throw new InsufficientMemoryException(message);
2828
throw new ZstdException(message);
2929
}
3030

3131
// ReSharper disable once InconsistentNaming
32-
// NOTE that this const may change on zstdlib update
33-
private const int ZSTD_error_dstSize_tooSmall = 12;
32+
// 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
33+
private const int ZSTD_error_dstSize_tooSmall = 70;
3434

3535
public static IntPtr EnsureZstdSuccess(this IntPtr returnValue)
3636
{

ZstdNet/ZstdNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>1.2.0</Version>
3+
<Version>1.3.1</Version>
44
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
55
<Title>ZstdNet</Title>
66
<PackageId>ZstdNet</PackageId>

ZstdNet/build/x64/libzstd.dll

-512 Bytes
Binary file not shown.

ZstdNet/build/x86/libzstd.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)