peekBytes method Null safety

  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((this.offset - start) + offset, count);
}