MCPcopy Create free account
hub / github.com/Tencent/MMKV / loadLibrary

Function loadLibrary

Core/MemoryFile_Android.cpp:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119#ifndef MMKV_OHOS
120void *loadLibrary() {
121 auto name = "libandroid.so";
122 static auto handle = dlopen(name, RTLD_LAZY | RTLD_LOCAL);
123 if (handle == RTLD_DEFAULT) {
124 MMKVError("unable to load library %s", name);
125 }
126 return handle;
127}
128
129typedef int (*AShmem_create_t)(const char *name, size_t size);
130typedef size_t (*AShmem_getSize_t)(int fd);

Callers 2

ASharedMemory_createFunction · 0.85
ASharedMemory_getSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected