peek_byte/[1,2]
ISOpeek_byte(-Byte)
peek_byte(+Stream, -Byte)
looks ahead for next input byte on the input stream Stream.
stream_object, must be ground
A valid input binary stream, defaults to the current input stream.
byte or -1
The resulting next input byte available on the stream.
peek_byte/[1,2]
looks ahead of the next input byte of the
specified input stream and unifies the byte with Byte.
The peeked byte is still available for subsequent input on the
stream.
Stream errors (see ref-iou-sfh-est), plus:
type_error
Byte is an invalid byte.
permission_error
Trying to read beyond end of Stream