Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a read-only runtime asset database from one verified immutable content store.

API: engine
Project: Inno.Assets

public Inno.Assets.AssetDatabase.AssetDatabase(Inno.Content.IRuntimeContentStore content, Inno.Core.Serialization.SerializationGeneration serialization, Inno.Extensibility.Types.TypeCacheSnapshot types, Inno.Core.Identity.IdentityAllocator identities, long residencyBudgetBytes = 9223372036854775807, long preparationBudgetBytes = 67108864)

Parameter content: The borrowed content store; its owner closes it after this database and all outstanding reads retire.

Parameter serialization: The immutable converter generation pinned by the owning runtime session.

Parameter identities: The session-owned allocator used for canonical runtime asset identities.

Parameter types: The immutable type generation pinned by this runtime session, without refreshing authoring registries.

Parameter residencyBudgetBytes: Maximum unpinned runtime payload bytes retained after lease release.

Parameter preparationBudgetBytes: Maximum encoded payload bytes reserved by unfinished cold-load closures, independently of residency.

Exception T:System.ArgumentNullException: Thrown when serialization is null.

Exception T:System.IO.InvalidDataException: Thrown when the deployed catalog or its runtime artifact closure is incomplete or malformed.