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

Method make

matlab/src/cpp/arrow/matlab/io/feather/proxy/reader.cc:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38libmexclass::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
53void Reader::read(libmexclass::proxy::method::Context& context) {
54 namespace mda = ::matlab::data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected