next up previous contents
Next: Strings and Characters Up: Sequences Previous: Ranges   Contents

Buffers

A RingBuffer is a special ExtensibleSequence that takes extra care to only use one underlying array object, and also stores its elements in a ``wrap-around'' fashion, to make for an efficient queue for Streams (see BufferReadStream and BufferWriteStream (des:BufferReadStream)). One consequence of this is that a RingBuffer has a limited upper bound in size which the client must handle, although the capacity can be grown explicitly.



Brian Rice 2004-08-24