| 36 | } |
| 37 | |
| 38 | libmexclass::proxy::MakeResult Reader::make( |
| 39 | const libmexclass::proxy::FunctionArguments& constructor_arguments) { |
| 40 | namespace mda = ::matlab::data; |
| 41 | using ReaderProxy = arrow::matlab::io::feather::proxy::Reader; |
| 42 | |
| 43 | mda::StructArray args = constructor_arguments[0]; |
| 44 | const mda::StringArray filename_utf16_mda = args[0]["Filename"]; |
| 45 | const auto filename_utf16 = std::u16string(filename_utf16_mda[0]); |
| 46 | MATLAB_ASSIGN_OR_ERROR(const auto filename, |
| 47 | arrow::util::UTF16StringToUTF8(filename_utf16), |
| 48 | error::UNICODE_CONVERSION_ERROR_ID); |
| 49 | |
| 50 | return std::make_shared<ReaderProxy>(filename); |
| 51 | } |
| 52 | |
| 53 | void Reader::read(libmexclass::proxy::method::Context& context) { |
| 54 | namespace mda = ::matlab::data; |
nothing calls this directly
no outgoing calls
no test coverage detected