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

Method getTypeID

matlab/src/cpp/arrow/matlab/type/proxy/type.cc:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34std::shared_ptr<arrow::DataType> Type::unwrap() { return data_type; }
35
36void Type::getTypeID(libmexclass::proxy::method::Context& context) {
37 namespace mda = ::matlab::data;
38 mda::ArrayFactory factory;
39
40 auto type_number_mda = factory.createScalar(static_cast<int64_t>(data_type->id()));
41 context.outputs[0] = type_number_mda;
42}
43
44void Type::getNumFields(libmexclass::proxy::method::Context& context) {
45 namespace mda = ::matlab::data;

Callers 1

fieldFunction · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected