MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / ArrayWrapper

Method ArrayWrapper

src/NodeRTLib/ProjectFiles/CollectionsWrap.h:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97 private:
98 ArrayWrapper(
99 ::Platform::Array<T> ^ winRtInstance,
100 const std::function<Local<Value>(T)>& getterFunc,
101 const std::function<bool(Local<Value>)>& checkTypeFunc = nullptr,
102 const std::function<T(Local<Value>)>& convertToTypeFunc = nullptr)
103 : _instance(winRtInstance),
104 _getterFunc(getterFunc),
105 _checkTypeFunc(checkTypeFunc),
106 _convertToTypeFunc(convertToTypeFunc) {}
107
108 static void New(Nan::NAN_METHOD_ARGS_TYPE info) {
109 NodeRT::Utils::SetHiddenValue(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected