pullChunkTyped method

Future<LSLChunkTyped> pullChunkTyped({
  1. int maxSamples = 512,
  2. double timeout = 0.0,
})

Pulls a chunk as flat TypedData (fast path).

The returned LSLChunkTyped.data is a fresh typed list matching the stream's channel format (sampleCount * channelCount values, sample-major); it remains valid after later pulls. Not available for string streams (UnsupportedError). See pullChunk for semantics.

Implementation

Future<LSLChunkTyped> pullChunkTyped({
  int maxSamples = 512,
  double timeout = 0.0,
}) => _useIsolates
    ? _pullChunkTypedIsolated(maxSamples, timeout)
    : Future.value(_pullChunkTypedDirect(maxSamples, timeout));