pushChunkBytes method

Future<int> pushChunkBytes(
  1. List<List<Uint8List>> samples, {
  2. double? timestamp,
  3. List<double>? timestamps,
  4. bool? pushthrough,
})

Pushes a chunk of binary-string samples (string-format streams only).

The binary counterpart of pushChunk: samples holds one list of channelCount byte strings per sample. See pushChunk for timestamp, timestamps and pushthrough.

Returns: Error code (0 = success).

Implementation

Future<int> pushChunkBytes(
  List<List<Uint8List>> samples, {
  double? timestamp,
  List<double>? timestamps,
  bool? pushthrough,
}) => _useIsolates
    ? _pushChunkBytesIsolated(samples, timestamp, timestamps, pushthrough)
    : Future.value(
        _pushChunkBytesDirect(samples, timestamp, timestamps, pushthrough),
      );