open-ephys / liboni

API for controlling ONI-compliant hardware
https://open-ephys.github.io/onix-docs/API%20Reference/index.html
0 stars 5 forks source link

Expose unmanaged pointer to frame data payload #14

Closed glopesdev closed 1 year ago

glopesdev commented 1 year ago

This PR allows direct access to the raw data payload field in the Frame class. This will allow optimizations where data might be copied out without requiring allocation of managed arrays. The generic Data method was also renamed to make it easier to recognize that it is producing a copy of the data rather than providing a view into the payload buffer.