From a351f55f07ed0a567a224280e76ea28329e28d44 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Tue, 14 May 2024 14:13:20 -0400 Subject: [PATCH] Register getAddress proxy method --- matlab/src/cpp/arrow/matlab/c/proxy/array.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/matlab/src/cpp/arrow/matlab/c/proxy/array.cc b/matlab/src/cpp/arrow/matlab/c/proxy/array.cc index 61a20c94fe7d8..2651f559c3d61 100644 --- a/matlab/src/cpp/arrow/matlab/c/proxy/array.cc +++ b/matlab/src/cpp/arrow/matlab/c/proxy/array.cc @@ -31,7 +31,9 @@ namespace arrow::matlab::c::proxy { } }; - Array::Array() : arrowArray{ArrowArrayPtr(new ArrowArray(), ArrowArrayDeleter())} {} + Array::Array() : arrowArray{ArrowArrayPtr(new ArrowArray(), ArrowArrayDeleter())} { + REGISTER_METHOD(Array, getAddress); + } Array::~Array() { if (arrowArray && arrowArray->release != nullptr) { @@ -52,5 +54,4 @@ namespace arrow::matlab::c::proxy { context.outputs[0] = factory.createScalar(address); } -} // namespace arrow::matlab::c::proxy - +} // namespace arrow::matlab::c::proxy \ No newline at end of file