MCPcopy Create free account
hub / github.com/Fable2Recomp/Fable2Recomp / HostToGuest

Function HostToGuest

src/heap.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39inline uint32_t HostToGuest(void* host_ptr) {
40 return static_cast<uint32_t>(static_cast<uint8_t*>(host_ptr) - g_membase);
41}
42
43inline bool InArena(uint32_t guest_addr) {
44 return guest_addr >= g_arena_base && guest_addr < g_arena_end;

Callers 2

lhHeapRealloc_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected