All Manuals > LispWorks User Guide and Reference Manual > 48 The STREAM Package

NextPrevUpTopContentsIndex

stream-read-byte

Generic Function
Summary

A generic function used by read-byte to read an integer or :eof symbol from a binary stream.

Package

stream

Signature

stream-read-byte stream => result

Arguments

stream

An input stream.

Values

result

An integer or :eof.

Description

The generic function stream-read-byte is used by read-byte, and returns either an integer read from the binary stream specified by stream, or the keyword:eof.

A method must be implemented for all binary subclasses of buffered-stream that handle input. A typical implementation will call stream-read-char and convert the character to an integer using char-code.

A method should be defined for a subclass of fundamental-binary-input-stream.

See also

buffered-stream
fundamental-binary-input-stream
fundamental-binary-stream
stream-read-char


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex