Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Decodes a manually defined structured root using the converter generation captured by this instance.

API: engine
Project: Inno.Core.Serialization

public TResult Inno.Core.Serialization.SerializationGeneration.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: Deterministic binary data containing the structured root.

Parameter read: The callback that consumes the complete root object.

Parameter context: Optional immutable converter context for this operation.

The callback result after all restoration callbacks complete.

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

Exception T:System.ObjectDisposedException: Thrown when this generation has already been disposed.