Native char
corresponds to Java byte
.
Note that your example is passing an array of size one to GetInformations
.
Aside from that incorrect mapping, which may very well be the cause of your crash, your mapping looks OK.
EDIT
You should initialize the infoCount
to the size of the array you're passing in ("1" in your example). If you want to pass in a larger array, you'll need to call .toArray()
on informations.infoArray
prior to calling GetInformations()
. Memory for additional array elements is allocated when you call Structure.toArray()
; until then you only have memory allocated for a single element.