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

API: engine
Project: Inno.Core.Serialization

public TResult Inno.Core.Serialization.SerializationRegistry.Decode<TResult>(System.ReadOnlySpan<byte> bytes, System.Func<Inno.Core.Serialization.SerializationReader, TResult> read, Inno.Core.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.