Skip to content

Commit

Permalink
Register getAddress proxy method
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed May 14, 2024
1 parent 0882516 commit a351f55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions matlab/src/cpp/arrow/matlab/c/proxy/array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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

0 comments on commit a351f55

Please sign in to comment.