Synced
SerializationRegistry.EncodePropertySnapshots
Section titled “SerializationRegistry.EncodePropertySnapshots”
- Encodes an existing ordered set of independent property snapshots as neutral restoration bytes.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Serialization
Declaration
Section titled “Declaration”public byte[] Inno.Core.Serialization.SerializationRegistry.EncodePropertySnapshots(System.Collections.Generic.IReadOnlyList<Inno.Core.Serialization.SerializationPropertySnapshot> snapshots)Parameters
Section titled “Parameters”Parameter snapshots: Snapshots previously produced by M:Inno.Core.Serialization.SerializationRegistry.CaptureProperties(Inno.Core.Serialization.ISerializable,Inno.Core.Serialization.SerializationContext).
Returns
Section titled “Returns”Strictly validated bytes accepted by M:Inno.Core.Serialization.SerializationRegistry.RestorePropertiesData(Inno.Core.Serialization.ISerializable,System.ReadOnlySpan{System.Byte},Inno.Core.Serialization.SerializationPropertyRestoreMode,Inno.Core.Serialization.SerializationContext).
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when snapshots is null.