Synced
SerializedIdentityRemapper.Rewrite
Section titled “SerializedIdentityRemapper.Rewrite”
- Replaces exact Guid and string values while retaining the binary serialization structure.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Serialization
Declaration
Section titled “Declaration”public static byte[] Inno.Core.Serialization.SerializedIdentityRemapper.Rewrite(System.ReadOnlySpan<byte> source, System.Collections.Generic.IReadOnlyDictionary<System.Guid, System.Guid> identities, System.Collections.Generic.IReadOnlyDictionary<string, string>? paths = null)Parameters
Section titled “Parameters”Parameter source: A complete serialized value or property snapshot.
Parameter identities: Old to new Guid values.
Parameter paths: Optional exact old to new string values.
Returns
Section titled “Returns”A detached rewritten payload; unknown binary subvalues remain unchanged.
Exceptions
Section titled “Exceptions”Exception T:System.IO.InvalidDataException: The recognized serialized format is malformed.