Skip to content

Commit

Permalink
added convenience callVoidNoArg
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Dec 23, 2024
1 parent b5e4f30 commit 71d4607
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ public Object call(String name, FunctionDescriptor fd, Object... args) {
return callImpl(name, fd, args);
}

public void callVoidNoArg(String name) {
callImpl(name, FunctionDescriptor.ofVoid());
}

public MemorySegment allocateIntArray(int length) {
return arena.allocate(ValueLayout.JAVA_INT, length);
}
Expand Down

0 comments on commit 71d4607

Please sign in to comment.