Pass an xxHash of the MonoAssemblyName to the hook; the hash should include the culture, if it's set on the MonoAssemblyName
Use a "versioned struct" (struct with a "size" field at the front equal to sizeof(that_struct) for the hook arguments, so that the runtime and clients could detect uses of an older version of the API).
the xxHash should be stored in a 64-bit storage, but it should use the 32-bit algorithm on a 32-bit architecture (important for Android perf)
From the Android SDK team:
Pass an
xxHash
of theMonoAssemblyName
to the hook; the hash should include the culture, if it's set on theMonoAssemblyName
Use a "versioned struct" (struct with a "size" field at the front equal to
sizeof(that_struct)
for the hook arguments, so that the runtime and clients could detect uses of an older version of the API).the xxHash should be stored in a 64-bit storage, but it should use the 32-bit algorithm on a 32-bit architecture (important for Android perf)