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

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

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

Parameter write: The callback that writes the root object.

Parameter context: Optional immutable converter context.

The encoded bytes.

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

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