readBytes method

Uint8List readBytes([
  1. int offset = 0,
  2. int? length
])

Reads bytes (Uint8List) of length at offset.

Implementation

Uint8List readBytes([int offset = 0, int? length]) {
  length ??= this.length - offset;
  var bs = sublist(offset, offset + length);
  return bs;
}