AssetDatabase.Constructor
Section titled “AssetDatabase.Constructor”
- Creates a read-only runtime asset database from one verified immutable content store.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”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)Parameters
Section titled “Parameters”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.
Exceptions
Section titled “Exceptions”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.