我遇到了以下代码段:
void solve_symbols() {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
getClass = dlsym(RTLD_DEFAULT, "objc_getClass");
getClassObj = dlsym(RTLD_DEFAULT, "object_getClass");
registerName = dlsym(RTLD_DEFAULT, "sel_registerName");
respondsToSelector = dlsym(RTLD_DEFAULT, "class_respondsToSelector");
msgSend = dlsym(RTLD_DEFAULT, "objc_msgSend");
});
}
可以在此处找到代码:GitHub:ParasiteLoader/loader.c
^{ getClass = dlsy... }
做什么/意味着什么?