Synced
SerializationRegistry.Decode
Section titled “SerializationRegistry.Decode”
- Decodes a manually defined structured schema from deterministic binary data.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Core.Serialization
Scope: Editor
Declaration
Section titled “Declaration”public TResult InnoEngine.Serialization.SerializationRegistry.Decode<TResult>(System.ReadOnlySpan<byte> bytes, System.Func<InnoEngine.Serialization.SerializationReader, TResult> read, InnoEngine.Serialization.SerializationContext? context = null)Type parameters
Section titled “Type parameters”Type parameter TResult: The result produced by the read callback.
Parameters
Section titled “Parameters”Parameter bytes: The encoded bytes.
Parameter read: The callback that reads the root object.
Parameter context: Optional immutable converter context.
Returns
Section titled “Returns”The callback result after all completion callbacks succeed.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when read is null.
Exception T:System.InvalidOperationException: Thrown when the manager is not initialized.