GamePatchKit.Compression.NativeCompressions 0.1.1

dotnet add package GamePatchKit.Compression.NativeCompressions --version 0.1.1
                    
NuGet\Install-Package GamePatchKit.Compression.NativeCompressions -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GamePatchKit.Compression.NativeCompressions" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GamePatchKit.Compression.NativeCompressions" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="GamePatchKit.Compression.NativeCompressions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GamePatchKit.Compression.NativeCompressions --version 0.1.1
                    
#r "nuget: GamePatchKit.Compression.NativeCompressions, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GamePatchKit.Compression.NativeCompressions@0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GamePatchKit.Compression.NativeCompressions&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=GamePatchKit.Compression.NativeCompressions&version=0.1.1
                    
Install as a Cake Tool

GamePatchKit.Compression.NativeCompressions

GamePatchKit ICompressionCodec의 기본 zstd 구현. NativeCompressions.Zstandard를 사용하며 Packager와 Runtime host가 zstd artifact를 다룰 때 주입한다.

  • target framework: netstandard2.1

사용법

ICompressionCodec codec = ZstdCompressionCodecFactory.Create();

await using var source = File.OpenRead("payload.bin");
await using var compressed = File.Create("payload.bin.zst");
await codec.CompressAsync(source, compressed, CancellationToken.None);

구체 압축 라이브러리 type을 노출하지 않는다. 입력·출력 Stream의 수명은 호출자가 소유하고, codec 호출 후에도 두 stream은 열린 상태로 남는다.

고정 압축 계약

deterministic package를 위해 아래 값은 호출자가 바꿀 수 없다.

항목
codec ID zstd
compression level 3
content size flag 비활성
content checksum 활성
dictionary ID 비활성
compression worker 0 (단일 thread)
streaming buffer 64 KiB

NativeCompressions.Zstandard version은 중앙에서 정확히 고정하며 자동 업그레이드하지 않는다.

지원 platform

Windows·Linux·macOS의 x64·arm64 desktop runtime을 검증 대상으로 한다. iOS IL2CPP는 NativeCompressions.Zstandard preview의 기본 지원 대상이 아니므로, 해당 target은 호환 codec을 직접 주입하거나 compression: none을 사용한다.

문서

MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on GamePatchKit.Compression.NativeCompressions:

Package Downloads
GamePatchKit.DotNet

HttpClient- and filesystem-based .NET adapter for the GamePatchKit Runtime, with default zstd codec configuration

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 97 7/29/2026