gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Matlab can not read data placed in arguments #62

Closed madhephaestus closed 4 years ago

madhephaestus commented 7 years ago

Matlab communicates with applications using a pass by value system that does not allow for data arrays to be passed to a function and have that buffer be filled by the java function.

I will be submitting a PR for overloaded read functions that declare and pass back a buffer as an optional way to use the read function.