Synced
ContentPackIndexCodec.Decode
Section titled “ContentPackIndexCodec.Decode”
- Restores and validates one current-format payload inventory.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Content
Declaration
Section titled “Declaration”public static Inno.Content.ContentPackIndex Inno.Content.ContentPackIndexCodec.Decode(System.ReadOnlySpan<byte> data, Inno.Core.Serialization.SerializationGeneration serialization)Parameters
Section titled “Parameters”Parameter data: The complete structured index bytes.
Parameter serialization: The borrowed converter generation pinned by the enclosing preparation operation.
Returns
Section titled “Returns”A newly owned immutable inventory with no duplicate or ambiguous identities.
Exceptions
Section titled “Exceptions”Exception T:System.IO.InvalidDataException: The bytes or inventory are malformed; no partial index is returned.