viewUint8List function

Uint8List viewUint8List(
  1. Uint8List x, [
  2. int offset = 0,
  3. int length
])

Returns view of x, accounting for when x is another view.

Implementation

Uint8List viewUint8List(Uint8List x, [int offset = 0, int length]) =>
    Uint8List.view(x.buffer, x.offsetInBytes + offset, length ?? x.length);