| 36 | std::shared_ptr<arrow::Field> Field::unwrap() { return field; } |
| 37 | |
| 38 | void Field::getName(libmexclass::proxy::method::Context& context) { |
| 39 | namespace mda = ::matlab::data; |
| 40 | mda::ArrayFactory factory; |
| 41 | |
| 42 | const auto& str_utf8 = field->name(); |
| 43 | MATLAB_ASSIGN_OR_ERROR_WITH_CONTEXT(const auto str_utf16, |
| 44 | arrow::util::UTF8StringToUTF16(str_utf8), context, |
| 45 | error::UNICODE_CONVERSION_ERROR_ID); |
| 46 | auto str_mda = factory.createScalar(str_utf16); |
| 47 | context.outputs[0] = str_mda; |
| 48 | } |
| 49 | |
| 50 | void Field::getType(libmexclass::proxy::method::Context& context) { |
| 51 | const auto& datatype = field->type(); |
no test coverage detected