peekBytes method

InputStream peekBytes(
  1. int count, {
  2. int offset = 0,
})

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

Implementation

InputStream peekBytes(int count, {int offset = 0}) =>
    subset(position: position + offset, length: count);