Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Decodes a manually defined structured schema from deterministic binary data.

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

public TResult InnoEngine.Serialization.SerializationRegistry.Decode<TResult>(System.ReadOnlySpan<byte> bytes, System.Func<InnoEngine.Serialization.SerializationReader, TResult> read, InnoEngine.Serialization.SerializationContext? context = null)

Type parameter TResult: The result produced by the read callback.

Parameter bytes: The encoded bytes.

Parameter read: The callback that reads the root object.

Parameter context: Optional immutable converter context.

The callback result after all completion callbacks succeed.

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

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