Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Restores deterministic binary data into an existing serializable root object.

API: scripting
Project: Inno.Core.Serialization
Scope: Editor

public void InnoEngine.Serialization.SerializationRegistry.Restore<T>(T target, System.ReadOnlySpan<byte> bytes, InnoEngine.Serialization.SerializationContext? context = null) where T : class, InnoEngine.Serialization.ISerializable

Type parameter T: The declared target contract.

Parameter target: The existing target object.

Parameter bytes: The encoded bytes.

Parameter context: Optional immutable converter context.

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

Exception T:System.InvalidOperationException: Thrown when the manager is not initialized.