MCPcopy
hub / github.com/putyy/res-downloader / __embind_register_function

Function __embind_register_function

frontend/src/assets/js/decrypt.js:3311–3326  ·  view source on GitHub ↗
(name, argCount, rawArgTypesAddr, signature, rawInvoker, fn)

Source from the content-addressed store, hash-verified

3309 }
3310
3311 function __embind_register_function(name, argCount, rawArgTypesAddr, signature, rawInvoker, fn) {
3312 var argTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
3313 name = readLatin1String(name);
3314
3315 rawInvoker = embind__requireFunction(signature, rawInvoker);
3316
3317 exposePublicSymbol(name, function() {
3318 throwUnboundTypeError('Cannot call ' + name + ' due to unbound types', argTypes);
3319 }, argCount - 1);
3320
3321 whenDependentTypesAreResolved([], argTypes, function(argTypes) {
3322 var invokerArgsArray = [argTypes[0] /* return value */, null /* no class 'this'*/].concat(argTypes.slice(1) /* actual params */);
3323 replacePublicSymbol(name, craftInvokerFunction(name, invokerArgsArray, null /* no class 'this'*/, rawInvoker, fn), argCount - 1);
3324 return [];
3325 });
3326 }
3327
3328 function integerReadValueFromPointer(name, shift, signed) {
3329 // integers are quite common, so generate very specialized functions

Callers

nothing calls this directly

Calls 8

heap32VectorToArrayFunction · 0.85
readLatin1StringFunction · 0.85
embind__requireFunctionFunction · 0.85
exposePublicSymbolFunction · 0.85
throwUnboundTypeErrorFunction · 0.85
replacePublicSymbolFunction · 0.85
craftInvokerFunctionFunction · 0.85

Tested by

no test coverage detected