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

API: engine
Project: Inno.Core.Serialization

public void Inno.Core.Serialization.SerializationRegistry.Restore<T>(T target, System.ReadOnlySpan<byte> bytes, Inno.Core.Serialization.SerializationContext? context = null) where T : class, Inno.Core.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.