pushChunkTyped method
Future<int>
pushChunkTyped(
- TypedData data, {
- double? timestamp,
- Float64List? timestamps,
- bool? pushthrough,
Pushes a chunk from a flat TypedData buffer (fast path).
data must be the typed list matching the stream's channel format
(e.g. Float32List for float32) holding sampleCount * channelCount
values in sample-major order. This copies with a single memmove instead
of per-element conversion. See pushChunk for timestamp semantics.
Returns: Error code (0 = success).
Implementation
Future<int> pushChunkTyped(
TypedData data, {
double? timestamp,
Float64List? timestamps,
bool? pushthrough,
}) => _useIsolates
? _pushChunkTypedIsolated(data, timestamp, timestamps, pushthrough)
: Future.value(
_pushChunkTypedDirect(data, timestamp, timestamps, pushthrough),
);