pushWithTimestamp method

int pushWithTimestamp(
  1. lsl_outlet out,
  2. Pointer<NativeType> data,
  3. int elements,
  4. double timestamp, {
  5. bool? pushthrough,
})

Pushes elements values with a single timestamp (0.0 = now).

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

Implementation

int pushWithTimestamp(
  lsl_outlet out,
  Pointer<NativeType> data,
  int elements,
  double timestamp, {
  bool? pushthrough,
}) {
  if (pushthrough != null) {
    return _pushTP(
      out,
      data.cast(),
      elements,
      timestamp,
      pushthrough ? 1 : 0,
    );
  }
  return _pushT(out, data.cast(), elements, timestamp);
}