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#include <android/native_window_jni.h>
65#include <cstdlib>
66#include <string>
67
68inline ValdiAndroid::RuntimeWrapper* getRuntimeWrapper(jlong handle) {
69 return reinterpret_cast<ValdiAndroid::RuntimeWrapper*>(handle);
70}
71
72inline Valdi::Runtime* getRuntime(jlong handle) {
73 auto* runtimeWrapper = getRuntimeWrapper(handle);
74 if (runtimeWrapper != nullptr) {
75 return &runtimeWrapper->getRuntime();
76 }

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