Skip to content

Instantly share code, notes, and snippets.

@hackf5
Last active June 27, 2019 15:10
Show Gist options
  • Save hackf5/8c35a11a372518a46e6f323d5205e5a8 to your computer and use it in GitHub Desktop.
Save hackf5/8c35a11a372518a46e6f323d5205e5a8 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <cstddef>
#include "mono/metadata/metadata-internals.h"
int main()
{
std::cout << "Domain Assemblies Offset: "
<< offsetof (_MonoDomain, domain_assemblies) << std::endl;
std::cout << "Class Cache Offset: "
<< offsetof (_MonoImage, class_cache) << std::endl;
}
// OUTPUT
// Domain Assemblies Offset: 108
// Class Cache Offset: 852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment