peekBytes method

InputBuffer 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

InputBuffer peekBytes(int count, [int offset = 0]) =>
    subset(count, offset: offset);