#include <native_assets_api.h>
Definition at line 11 of file native_assets_api.h.
◆ DlopenAbsolute()
void * dart::bin::NativeAssets::DlopenAbsolute |
( |
const char * |
path, |
|
|
char ** |
error |
|
) |
| |
|
static |
Definition at line 122 of file native_assets_api_impl.cc.
122 {
123
126 return handle;
127}
const uint8_t uint32_t uint32_t GError ** error
static void WrapError(const char *path, char **error)
static void * LoadDynamicLibrary(const char *library_file, char **error=nullptr)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ DlopenExecutable()
void * dart::bin::NativeAssets::DlopenExecutable |
( |
char ** |
error | ) |
|
|
static |
◆ DlopenProcess()
void * dart::bin::NativeAssets::DlopenProcess |
( |
char ** |
error | ) |
|
|
static |
Definition at line 160 of file native_assets_api_impl.cc.
160 {
161#if defined(DART_HOST_OS_LINUX) || defined(DART_HOST_OS_MACOS) || \
162 defined(DART_HOST_OS_ANDROID) || defined(DART_HOST_OS_FUCHSIA)
163 return RTLD_DEFAULT;
164#else
165 return kWindowsDynamicLibraryProcessPtr;
166#endif
167}
◆ DlopenRelative()
void * dart::bin::NativeAssets::DlopenRelative |
( |
const char * |
path, |
|
|
const char * |
script_uri, |
|
|
char ** |
error |
|
) |
| |
|
static |
Definition at line 129 of file native_assets_api_impl.cc.
131 {
132 void* handle = nullptr;
134 const intptr_t
len = strlen(
path);
137#if defined(DART_TARGET_OS_WINDOWS)
139#endif
141 if (!target_uri) {
143 platform_script_cstr.get());
144 } else {
147 }
150 return handle;
151}
const int file_schema_length
CStringUniquePtr CleanScriptUri(const char *script_uri)
static void WrapErrorRelative(const char *path, const char *script_uri, char **error)
CAllocUniquePtr< char > CStringUniquePtr
void * malloc(size_t size)
CStringUniquePtr ResolveUri(const char *ref_uri, const char *base_uri)
#define SET_ERROR_MSG(error_msg, format,...)
SKWASM_EXPORT SkPath * path_copy(SkPath *path)
◆ DlopenSystem()
void * dart::bin::NativeAssets::DlopenSystem |
( |
const char * |
path, |
|
|
char ** |
error |
|
) |
| |
|
static |
◆ Dlsym()
void * dart::bin::NativeAssets::Dlsym |
( |
void * |
handle, |
|
|
const char * |
symbol, |
|
|
char ** |
error |
|
) |
| |
|
static |
Definition at line 225 of file native_assets_api_impl.cc.
225 {
227 if (*
error !=
nullptr) {
228 char* inner_error = *
error;
230 inner_error);
231 free(inner_error);
232 }
234}
static void * ResolveSymbol(void *handle, const char *symbol, char **error)
The documentation for this class was generated from the following files: