Back: Sockets.UnixSocketImpl-socket operations Up: Sockets package Forward: Sockets.WriteBuffer-accessing-writing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

6.28 Sockets.WriteBuffer

Defined in namespace Sockets
Superclass: WriteStream
Category: Examples-Useful tools

I'm a WriteStream that, instead of growing the collection, evaluates an user defined block and starts over with the same collection.

6.28.1 Sockets.WriteBuffer: accessing-writing  (instance)
6.28.2 Sockets.WriteBuffer: buffer handling  (instance)
6.28.3 Sockets.WriteBuffer: testing  (instance)


6.28.1 Sockets.WriteBuffer: accessing-writing

next: n putAll: aCollection startingAt: pos
Put n characters or bytes of aCollection, starting at the pos-th, in the collection buffer.


6.28.2 Sockets.WriteBuffer: buffer handling

close
Not commented.

flush
Evaluate the flushing block and reset the stream

flushBlock: block
Set which block will be used to flush the buffer. The block will be evaluated with a collection and an Integer n as parameters, and will have to write the first n elements of the collection.


6.28.3 Sockets.WriteBuffer: testing

isFull
Not commented.



Back: Sockets.WriteBuffer-buffer handling Up: Sockets.WriteBuffer Forward: ZLib package   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on April, 16 2013 using texi2html