Answer a Stream that uses aCollection as a buffer. You
should ensure that the fillBlock is set before the first
operation, because the buffer will report that the data
has ended until you set the fillBlock.
6.12.2 TCP.ReadBuffer: buffer handling
atEnd
Answer whether the data stream has ended.
bufferContents
Answer the data that is in the buffer, and empty it.
fill
Fill the buffer with more data if it is empty, and answer
true if the fill block was able to read more data.
fillBlock: block
Set the block that fills the buffer. It receives a collection
and the number of bytes to fill in it, and must return the number
of bytes actually read
isEmpty
Answer whether the next input operation will force a buffer fill
isFull
Answer whether the buffer has been just filled
notEmpty
Check whether the next input operation will force a buffer fill
and answer true if it will not.
pastEnd
Try to fill the buffer if the data stream has ended.
This document was generated
on May, 22 2008
using texi2html