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

Function JsArrayToWinrtArray

src/NodeRTLib/ProjectFiles/CollectionsConverter.h:149–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148 template <class V>
149 static ::Platform::Array<V> ^
150 JsArrayToWinrtArray(
151 v8::Local<v8::Array> arr,
152 const std::function<bool(v8::Local<v8::Value>)>& checkValueTypeFunc,
153 const std::function<V(v8::Local<v8::Value>)>& convertToValueTypeFunc) {
154 auto vec = ref new ::Platform::Array<V>(arr->Length());
155 if (!FillVector<::Platform::Array<V> ^, V>(arr, checkValueTypeFunc,
156 convertToValueTypeFunc, vec)) {
157 return nullptr;
158 }
159
160 return vec;
161 }
162} // namespace Collections
163
164template <class V>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected