Synced
SerializationRegistry.Restore
Section titled “SerializationRegistry.Restore”
- Restores deterministic binary data into an existing serializable root object.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Serialization
Declaration
Section titled “Declaration”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.ISerializableType parameters
Section titled “Type parameters”Type parameter T: The declared target contract.
Parameters
Section titled “Parameters”Parameter target: The existing target object.
Parameter bytes: The encoded bytes.
Parameter context: Optional immutable converter context.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when target is null.
Exception T:System.InvalidOperationException: Thrown when the manager is not initialized.