Skip to content

Invoking a method that modifies an input parameter #83

@sorokod

Description

@sorokod

I am invoking a Java method that accepts an array as a parameter and returns an int, something like int method(byte[] out). method is modifying the out parameter which I would like to pick Julia side.

On Julia side I have:

jout = Array{UInt8}(undef, 64)
jcall(object, "method", jint, (Array{jbyte,1}), jout)

But what I see is that jout is not affected by the invocation. How do I implemented this invocation pattern with JavaCall?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions