readSlice method

Uint8List readSlice(
  1. int n
)

Reads n bytes

Implementation

Uint8List readSlice(int n) => _requireBytes(
  n, () => Uint8List.fromList(bytes.buffer.asUint8List((offset += n) - n, n)),
);