pullSampleIntoSync method
Implementation
LSLSamplePointer<T> pullSampleIntoSync(
Pointer<T> buffer,
lsl_inlet inlet,
int channels,
double timeout,
Pointer<Int32> ec,
) {
final double timestamp = _pullFn(inlet, buffer, channels, timeout, ec);
final int errorCode = ec.value;
if (LSLObj.error(errorCode)) {
return LSLSamplePointer<T>(timestamp, errorCode, 0);
}
return LSLSamplePointer<T>(timestamp, errorCode, buffer.address);
}