AssetArchiveSource class

Namespace Runic.Assets · Runic.Assets 0.7.0-preview.5

public sealed class AssetArchiveSource : IAssetSnapshotSource, IAssetSource, IAssetManifestProvider

Inherits or implements IAssetSnapshotSource, IAssetSource, IAssetManifestProvider.

An immutable in-memory source loaded from a Runic Assets archive.

Properties

Manifest

public AssetManifest Manifest { get; }

Gets the current immutable manifest with identity, digest, and cache metadata.

Documentation from IAssetManifestProvider.Manifest.

Methods

OpenReadAsync

public ValueTask<Stream> OpenReadAsync(string relativePath, CancellationToken cancellationToken = default)

Opens one exact manifest path for reading.

Documentation from IAssetSource.OpenReadAsync.

OpenSnapshotAsync

public ValueTask<AssetReadSnapshot> OpenSnapshotAsync(string relativePath, CancellationToken cancellationToken = default)

Opens one exact manifest asset and its matching immutable descriptor.

Documentation from IAssetSnapshotSource.OpenSnapshotAsync.

ValidateAsync

public ValueTask ValidateAsync(CancellationToken cancellationToken = default)

Validates metadata and backing content.

Documentation from IAssetSource.ValidateAsync.