pushWithTimestamps method

int pushWithTimestamps(
  1. lsl_outlet out,
  2. Pointer<NativeType> data,
  3. int elements,
  4. Pointer<Double> timestamps, {
  5. bool? pushthrough,
})

Pushes elements values with one timestamp per sample.

A non-null pushthrough overrides the outlet's chunking for this push.

Implementation

int pushWithTimestamps(
  lsl_outlet out,
  Pointer<NativeType> data,
  int elements,
  Pointer<Double> timestamps, {
  bool? pushthrough,
}) {
  if (pushthrough != null) {
    return _pushTNP(
      out,
      data.cast(),
      elements,
      timestamps,
      pushthrough ? 1 : 0,
    );
  }
  return _pushTn(out, data.cast(), elements, timestamps);
}