Next: , Previous: , Up: Sockets.ReadBuffer   [Index]


6.17.2 Sockets.ReadBuffer: accessing-reading

nextAvailable: anInteger into: aCollection startingAt: pos

Place the next anInteger objects from the receiver into aCollection, starting at position pos. Return the number of items stored.

nextAvailable: anInteger putAllOn: aStream

Copy the next anInteger objects from the receiver to aStream. Return the number of items stored.

upTo: anObject

Returns a collection of the same type that the stream accesses, up to but not including the object anObject. Returns the entire rest of the stream’s contents if anObject is not present.

upToEnd

Returns a collection of the same type that the stream accesses, up to but not including the object anObject. Returns the entire rest of the stream’s contents if anObject is not present.