11.3.92 get_byte/[1,2] [ISO]

Synopsis

get_byte(-Byte)

get_byte(+Stream, -Byte)

Unifies Byte with the next byte from Stream or with -1 if there are no more bytes.

Arguments

Stream
stream_object, must be ground

valid input binary stream, defaults to the current input stream.

Byte
byte or -1

Exceptions

Stream errors (see ref-iou-sfh-est), plus:

type_error
Byte is an invalid byte.
existence_error
Trying to read beyond end of Stream

See Also

ref-iou-cin.


Send feedback on this subject.