MCPcopy Create free account
hub / github.com/nodejs/nan / unwrap

Method unwrap

nan_weak.h:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217template<typename T>
218template<typename S>
219WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrap(
220 NAN_WEAK_CALLBACK_DATA_TYPE_ data) {
221 void *parameter = data.GetParameter();
222 WeakCallbackInfo<T> *cbinfo =
223 static_cast<WeakCallbackInfo<T>*>(parameter);
224 cbinfo->isolate_ = data.GetIsolate();
225 return cbinfo;
226}
227
228#undef NAN_WEAK_CALLBACK_SIG_
229#undef NAN_WEAK_CALLBACK_DATA_TYPE_

Callers

nothing calls this directly

Calls 2

GetParameterMethod · 0.80
GetIsolateMethod · 0.45

Tested by

no test coverage detected