MCPcopy Create free account
hub / github.com/apache/fory / FastFunction

Function FastFunction

javascript/packages/hps/src/fastcall.cc:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141v8::CFunction fast_serialize_string(v8::CFunction::Make(serializeStringFast));
142
143v8::Local<v8::FunctionTemplate> FastFunction(v8::Isolate *isolate,
144 v8::FunctionCallback callback,
145 const v8::CFunction *c_function) {
146 return v8::FunctionTemplate::New(
147 isolate, callback, v8::Local<v8::Value>(), v8::Local<v8::Signature>(), 0,
148 v8::ConstructorBehavior::kThrow, v8::SideEffectType::kHasSideEffect,
149 c_function);
150}
151
152void Init(v8::Local<v8::Object> exports) {
153 v8::Local<v8::Context> context = exports->GetCreationContextChecked();

Callers 1

InitFunction · 0.85

Calls 1

NewFunction · 0.50

Tested by

no test coverage detected