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

Function GuestToHost

src/heap.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33uint32_t g_arena_end = 0;
34
35inline void* GuestToHost(uint32_t guest_addr) {
36 return g_membase + guest_addr;
37}
38
39inline uint32_t HostToGuest(void* host_ptr) {
40 return static_cast<uint32_t>(static_cast<uint8_t*>(host_ptr) - g_membase);

Callers 1

lhHeapRealloc_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected