peekBytes method Null safety

  1. @override
InputStream 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
InputStream peekBytes(int count, [int offset = 0]) {
  return subset((this.offset - start) + offset, count);
}