decodeBytes method

  1. @override
Future<WaveformPeaks> decodeBytes(
  1. Uint8List bytes, {
  2. int baseSamplesPerPixel = 128,
})
override

Decodes an in-memory container. The only decode path on web.

Implementation

@override
Future<WaveformPeaks> decodeBytes(
  Uint8List bytes, {
  int baseSamplesPerPixel = 128,
}) async => _decode(bytes.length);