The Filter class filters a the I/O of a Buffer.
A Buffer may call the file read/write functions, or it may call a Filter's read() or write() (both of which are virtual functions). A filter may be installed on a Buffer using Buffer::addFilter().
Constructs an empty Filter.
This virtual function is responsible for flushing any queues the filter may have, such that all output is sent to buffer. The default implementation does nothing.
This virtual function reads up to len bytes into memory starting at address. It may use buffer as a data source, filtering the data as appropriate for each subclass of Filter.
This virtual function writes len bytes starting at address. It may use buffer as a sink after filtering the data.
Destroys the object and frees any allocated resources.
This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.