pullInto method

int pullInto(
  1. lsl_inlet inlet,
  2. Pointer<NativeType> data,
  3. Pointer<Double> timestamps,
  4. int maxSamples,
  5. int channels,
  6. double timeout,
  7. Pointer<Int32> ec,
)

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,
  );
}