pullInto method
Pulls up to maxSamples frames into data/timestamps.
Returns the number of data elements read (samples * channels).
liblsl keeps pulling until maxSamples frames are read or timeout
expires; with 0.0 it takes only what is already buffered.
Implementation
int pullInto(
lsl_inlet inlet,
Pointer<NativeType> data,
Pointer<Double> timestamps,
int maxSamples,
int channels,
double timeout,
Pointer<Int32> ec,
) {
return _pullFn(
inlet,
data.cast(),
timestamps,
maxSamples * channels,
maxSamples,
timeout,
ec,
);
}