Table of Contents

Class ZipAssetSource

Namespace
Shard.Assets
Assembly
Shard.Assets.dll
public class ZipAssetSource : IAssetSource, IDisposable
Inheritance
ZipAssetSource
Implements
Inherited Members

Constructors

ZipAssetSource(string)

public ZipAssetSource(string zipPath)

Parameters

zipPath string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

EnumerateFiles(string)

public IEnumerable<AssetFile> EnumerateFiles(string prefix)

Parameters

prefix string

Returns

IEnumerable<AssetFile>

OpenRead(string)

public Stream OpenRead(string path)

Parameters

path string

Returns

Stream

TryGetFile(string, out AssetFile)

public bool TryGetFile(string path, out AssetFile file)

Parameters

path string
file AssetFile

Returns

bool

TryOpenRead(string, out Stream?)

public bool TryOpenRead(string path, out Stream? stream)

Parameters

path string
stream Stream

Returns

bool