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

NextPrevUpTopContentsIndex

stream-flush-buffer

Generic Function
Summary

Flushes a stream's buffer.

Package

stream

Signature

stream-flush-buffer stream => result

Arguments

stream

An output stream.

Values

result

A generalized boolean.

Description

The generic function stream-flush-buffer is called by the writing functions to flush a stream buffer to the underlying data sink.

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

Before returning, stream-flush-buffer must set the output index of stream so that more characters can be written to the buffer. If desired, the output buffer and limit can be set too.

There is a built-in method specialized on buffered-stream which usually suffices. It calls stream-write-buffer with the currently active part of the stream's output buffer and sets the output index to 0.

result is true if the buffer was flushed.

See also

buffered-stream
stream-write-buffer


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex