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

API: engine
Project: Inno.Core.Serialization

public byte[] Inno.Core.Serialization.SerializationGeneration.Encode(System.Action<Inno.Core.Serialization.SerializationWriter> write, Inno.Core.Serialization.SerializationContext? context = null)

Parameter write: The callback that writes the complete root object.

Parameter context: Optional immutable converter context for this operation.

Deterministic binary data containing the structured root.

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

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