Skip to content

Commit

Permalink
Add static importFromC 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 cc22649 commit 3ebcf4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions matlab/src/matlab/+arrow/+array/Array.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,11 @@ function exportToC(obj, cArrayAddress, cSchemaAddress)
obj.Proxy.exportToC(args);
end
end

methods(Static)
function array = importFromC(cArray, cSchema)
importer = arrow.c.internal.ArrayImporter();
array = importer.import(cArray, cSchema);
end
end
end

0 comments on commit 3ebcf4e

Please sign in to comment.