Contents

SushiEngine::Addon

first_mismatch

SeAddonABIFingerprintField first_mismatch(const SeAddonABIFingerprint &host, const SeAddonABIFingerprint &addon) noexcept

Parameters

NameType
hostconst SeAddonABIFingerprint &
addonconst SeAddonABIFingerprint &

Returns

SeAddonABIFingerprintField

SE_ADDON_ABI_FIELD_NONE when every field agrees.

Description

Returns the first field on which host and addon disagree.

Precondition

host is fully initialized. addon is a zeroed full-size struct with at most min(addon's structure_size, sizeof(SeAddonABIFingerprint)) bytes copied in; structure_size and layout_version are checked first. A UNKNOWN-enumerator field (0) refuses when host holds it, even if addon also does.