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

NextPrevUpTopContentsIndex

stream-read-buffer

Generic Function
Summary

Reads data into the stream buffer.

Package

stream

Signature

stream-read-buffer stream buffer start end => result

Arguments

stream

An input stream.

buffer

A stream buffer.

start, end

Bounding indexes for a subsequence of buffer.

Values

result

A non-negative integer.

Description

The generic function stream-read-buffer is called by stream-fill-buffer to place characters into the region of the buffer buffer bounded by start and end.

stream should be an instance of a subclass of buffered-stream.

stream-read-buffer should block until some data is available. result should be the number of characters actually placed in the buffer (0 if at end of file). This method must be implemented for subclasses of buffered-stream that handle input.

See also

buffered-stream
stream-fill-buffer


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex