Skip to content

Commit 1bb1af4

Browse files
committed
Implement arrow::matlab::c::proxy::Array::getAddress()
1 parent 2b4d818 commit 1bb1af4

File tree

1 file changed

+8
-0
lines changed
  • matlab/src/cpp/arrow/matlab/c/proxy

1 file changed

+8
-0
lines changed

matlab/src/cpp/arrow/matlab/c/proxy/array.cc

+8
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,13 @@ namespace arrow::matlab::c::proxy {
4646
return std::make_shared<Array>();
4747
}
4848

49+
void getAddress(libmexclass::proxy::method::Context& context) {
50+
namespace mda = ::matlab::data;
51+
52+
mda::ArrayFactory factory;
53+
auto address = reinterpret_cast<uint64_t>(arrowArray.get());
54+
context.outputs[0] = factory.createScalar(address);
55+
}
56+
4957

5058
} // namespace arrow::matlab::c::proxy

0 commit comments

Comments
 (0)