MCPcopy Create free account
hub / github.com/apache/arrow / manage_proxy

Function manage_proxy

matlab/src/cpp/arrow/matlab/proxy/wrap.cc:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185::matlab::data::StructArray manage_proxy(
186 const std::shared_ptr<libmexclass::proxy::Proxy>& proxy,
187 const arrow::Type::type type_id) {
188 namespace mda = ::matlab::data;
189 mda::ArrayFactory factory;
190 const auto proxy_id = libmexclass::proxy::ProxyManager::manageProxy(proxy);
191 mda::StructArray output = factory.createStructArray({1, 1}, {"ProxyID", "TypeID"});
192 output[0]["ProxyID"] = factory.createScalar(proxy_id);
193 output[0]["TypeID"] = factory.createScalar(static_cast<int32_t>(type_id));
194 return output;
195}
196
197} // anonymous namespace
198

Callers 1

wrap_and_manageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected