Skip to content

Commit

Permalink
Add exportToC method to arrow.array.Array
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed May 10, 2024
1 parent a81c3a8 commit fd15eba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions matlab/src/matlab/+arrow/+array/Array.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,16 @@ function displayScalarObject(obj)
proxy = libmexclass.proxy.Proxy(Name=traits.ArrayProxyClassName, ID=arrayStruct.ProxyID);
array = traits.ArrayConstructor(proxy);
end

function exportToC(obj, cArrayAddress, cSchemaAddress)
arguments
obj(1, 1) arrow.array.Array
cArrayAddress(1, 1) uint64
cSchemaAddress(1, 1) uint64
end
args = struct(ArrowArrayAddress=cArrayAddress,...
ArrowSchemaAddress=cSchemaAddress);
obj.Proxy.exportToC(args);
end
end
end

0 comments on commit fd15eba

Please sign in to comment.