MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getRuntime

Function getRuntime

valdi/src/valdi/android/NativeBridge.cpp:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66inline Valdi::Runtime* getRuntime(jlong handle) {
67 auto* runtimeWrapper = getRuntimeWrapper(handle);
68 if (runtimeWrapper != nullptr) {
69 return &runtimeWrapper->getRuntime();
70 }
71
72 return nullptr;
73}
74
75static Valdi::SharedContext getContext(jlong contextHandle) {
76 return Valdi::unsafeBridge<Valdi::Context>(reinterpret_cast<void*>(contextHandle));

Callers 15

loadModuleMethod · 0.85
updateResourceMethod · 0.85
destroyContextMethod · 0.85
callJSFunctionMethod · 0.85
getAllModuleHashesMethod · 0.85
getJSRuntimeMethod · 0.85

Calls 2

getRuntimeWrapperFunction · 0.85
getRuntimeMethod · 0.45

Tested by

no test coverage detected