peekBytes method

  1. @override
InputStreamBase peekBytes(
  1. int count, [
  2. int offset = 0
])
override

Read count bytes from an offset of the current read position, without moving the read position.

Implementation

@override
InputStreamBase peekBytes(int count, [int offset = 0]) {
  return subset(_position + offset, count);
}