Vixen
02b45cc4
csharp
public sealed class BundleWriter

Builds a .bundle from chunks.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The content build owns the policy — which chunks go in which bundle, and what compresses how. This owns the bytes. Keeping them apart is what lets the format be tested exhaustively now, years before the packer that will produce them in anger.

Fields and properties (1)

  • public int Count

    How many chunks are staged.

Methods (3)

  • public void Add(ObjectId id, ReadOnlyMemory<byte> blob)

    Stages a chunk. Adding the same id twice keeps one copy.

  • public void AddAll(IOdbBackend backend)

    Copies every chunk out of a backend.

  • public byte[] Build()

    Produces the bundle.

Used by (13)

  • AssetMaterialSourceTestsVixen.Engine.Renderer.Tests
  • AssetTextureSourceTestsVixen.Engine.Renderer.Tests
  • CompositorContentTestsVixen.Assets.Tests
  • ObjectDatabaseTestsVixen.Core.Serialization.Tests
  • ReferenceWorldVixen.Assets.Tests
  • RemoteWorldVixen.Assets.Tests
  • StreamedContentTestsVixen.Assets.Tests
  • WorldVixen.Assets.Tests
  • WorldRendererTestsVixen.Engine.Renderer.Tests
  • ContentBuilderVixen.Editor.Assets
  • ContentMountTestsVixen.App.Tests
  • RemoteContentMountTestsVixen.App.Tests
  • StartupSceneTestsVixen.App.Tests