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

Method getNumFields

matlab/src/cpp/arrow/matlab/array/proxy/struct_array.cc:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void StructArray::getNumFields(libmexclass::proxy::method::Context& context) {
85 namespace mda = ::matlab::data;
86
87 mda::ArrayFactory factory;
88 const auto num_fields = array->type()->num_fields();
89 context.outputs[0] = factory.createScalar(num_fields);
90}
91
92void StructArray::getFieldByIndex(libmexclass::proxy::method::Context& context) {
93 namespace mda = ::matlab::data;

Callers

nothing calls this directly

Calls 2

num_fieldsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected