csharp
public sealed class LocalBundleSourceBundles that shipped with the application.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Reads a bundle out of a directory by either of BundleFile's two names and keeps each open once. A bundle backend is a window onto a memory-mapped file, so opening one twice would map the same file twice for no reason and leave two lifetimes to get right instead of one.
Methods (5)
public LocalBundleSource(VirtualFileSystem files, VirtualPath root, bool verifyChecksum = false)Reads bundles from a directory.
public VirtualPath PathOf(CatalogBundle bundle)Where a bundle's file is.
public bool IsAvailable(CatalogBundle bundle)Whether the bundle can be opened without fetching anything.
public ValueTask<IOdbBackend> OpenAsync(CatalogBundle bundle, CancellationToken cancellationToken = default(CancellationToken))Opens a bundle, fetching it first if that is what it takes.
public void Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Used by (14)
- AssetMaterialSourceTestsVixen.Engine.Renderer.Tests
- AssetTextureSourceTestsVixen.Engine.Renderer.Tests
- CompositorContentTestsVixen.Assets.Tests
- ContentMountVixen.App.Hosting
- LooseContentSourceVixen.Assets
- ReferenceWorldVixen.Assets.Tests
- RemoteContentTestsVixen.Assets.Tests
- RemoteWorldVixen.Assets.Tests
- StreamedContentTestsVixen.Assets.Tests
- WorldVixen.Assets.Tests
- WorldRendererTestsVixen.Engine.Renderer.Tests
- ContentBuilderTestsVixen.Editor.Assets.Tests
- LooseContentTestsVixen.Editor.Assets.Tests
- SceneManifestTestsVixen.Editor.Assets.Tests