Paradise.Assets.Packing
0.61.2
dotnet add package Paradise.Assets.Packing --version 0.61.2
NuGet\Install-Package Paradise.Assets.Packing -Version 0.61.2
<PackageReference Include="Paradise.Assets.Packing" Version="0.61.2" />
<PackageVersion Include="Paradise.Assets.Packing" Version="0.61.2" />
<PackageReference Include="Paradise.Assets.Packing" />
paket add Paradise.Assets.Packing --version 0.61.2
#r "nuget: Paradise.Assets.Packing, 0.61.2"
#:package Paradise.Assets.Packing@0.61.2
#addin nuget:?package=Paradise.Assets.Packing&version=0.61.2
#tool nuget:?package=Paradise.Assets.Packing&version=0.61.2
Paradise.Assets.Packing
Read-only Zio filesystems over independently compressed Zstandard chunks. Targets .NET 10, including desktop NativeAOT and browser WASM, with ZstdSharp.Port 0.8.8.
using Paradise.Assets.Packing;
using Zio;
using Zio.FileSystems;
using var storage = new PhysicalFileSystem();
using var assets = new AssetPackFileSystem(storage,
storage.ConvertPathFromInternal(Path.GetFullPath("build/assets.pak")));
using var input = assets.OpenFile("/models/crate.mesh", FileMode.Open, FileAccess.Read, FileShare.Read);
input.Seek(1024, SeekOrigin.Begin);
byte[] range = new byte[128];
await input.ReadExactlyAsync(range, cancellationToken);
The filesystem reports decoded sizes. Each open stream has its own cursor, decoder and one
decoded-chunk cache. Read may return a partial result at a chunk boundary; use ReadExactly
for fixed records. Independent streams may be used concurrently; a single stream requires
normal caller serialization. There is no shared decompression cache or coordination layer.
The backing storage is borrowed and must outlive readers. Do not modify pack files in place.
Storage readers allow rename/delete sharing: existing streams survive publication of a new
pack, but the mount rejects new opens if its backing file's length or footer changed. Remount
after publication. The memory constructor retains its ReadOnlyMemory<byte> without copying;
callers must not change the underlying bytes. Dispose streams to release buffers and decoders.
An open stream remains usable after its filesystem is disposed.
See the format, build configuration, SafariPark examples and validation commands.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Zio (>= 0.24.0)
- ZstdSharp.Port (>= 0.8.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Paradise.Assets.Packing:
| Package | Downloads |
|---|---|
|
Paradise.Assets.Pipeline
The Paradise asset build pipeline: source-tree verification, canonical-form checks, and the build verbs' logic, on Zio. The paradise-assets CLI is a thin shell over this library. |
GitHub repositories
This package is not used by any popular GitHub repositories.