peek_byte/2

"peek_byte(+Stream, - C" ) is iso

If C is unbound, or is a character code, and Stream is a binary stream, read the next byte from the current stream and unify its code with C, while leaving the current stream position unaltered.