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

Function Init

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

Source from the content-addressed store, hash-verified

150}
151
152void Init(v8::Local<v8::Object> exports) {
153 v8::Local<v8::Context> context = exports->GetCreationContextChecked();
154 v8::Isolate *isolate = context->GetIsolate();
155 exports
156 ->Set(context, Nan::New("serializeString").ToLocalChecked(),
157 FastFunction(isolate, serializeString, &fast_serialize_string)
158 ->GetFunction(context)
159 .ToLocalChecked())
160 .Check();
161}
162
163NODE_MODULE(fory_util, Init)

Callers

nothing calls this directly

Calls 3

FastFunctionFunction · 0.85
NewFunction · 0.50
SetMethod · 0.45

Tested by

no test coverage detected