bytesTo<R> method

  1. @override
R bytesTo<R>(
  1. R output(
    1. Uint8List bytes,
    2. int offset,
    3. int length
    ), [
  2. int offset = 0,
  3. int? length
])
override

Calls the function output with the internal bytes of this instance.

Implementation

@override
R bytesTo<R>(R Function(Uint8List bytes, int offset, int length) output,
    [int offset = 0, int? length]) {
  length ??= _length - offset;

  return output(_bytes, offset, length);
}