peek

fun peek(): Int

Peek one byte without advancing; returns -1 at EOF.


fun peek(offset: Int): Int

Peek byte at offset bytes ahead without advancing; returns -1 at EOF.