LSLPullChunk<T extends NativeType, D> class abstract

The base class for chunk pull operations, one subclass per channel format.

Data lands as a flat buffer of sampleCount * channelCount values in sample-major order with one timestamp per sample.

Constructors

LSLPullChunk(DartLSLPullChunk<T> _pullFn)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

allocBuffer(int elements) → Pointer<T>
Allocates a flat native buffer of elements values.
bufferToLists(Pointer<NativeType> buffer, int samples, int channels) → List<List<D>>
Converts samples frames from the flat buffer to lists of Dart values.
bufferToTypedData(Pointer<NativeType> buffer, int elements) → TypedData
Copies elements values from buffer into a fresh TypedData (safe to keep after subsequent pulls). Unsupported for string streams.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pullInto(lsl_inlet inlet, Pointer<NativeType> data, Pointer<Double> timestamps, int maxSamples, int channels, double timeout, Pointer<Int32> ec) → int
Pulls up to maxSamples frames into data/timestamps.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited