MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / node_from_offset

Function node_from_offset

system/lib/libcxxabi/src/fallback_malloc.cpp:94–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92static heap_node* freelist = NULL;
93
94heap_node* node_from_offset(const heap_offset offset) {
95 return (heap_node*)(heap + (offset * sizeof(heap_node)));
96}
97
98heap_offset offset_from_node(const heap_node* ptr) {
99 return static_cast<heap_offset>(

Callers 3

fallback_mallocFunction · 0.85
fallback_freeFunction · 0.85
print_free_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected