Next: , Previous: Stream-basic, Up: Stream


1.154.4 Stream: buffering

next: anInteger into: answer startingAt: pos
Read up to anInteger bytes from the stream and store them into answer. Return the number of bytes that were read, raising an exception if we could not read the full amount of data.


next: anInteger putAllOn: aStream
Read up to anInteger bytes from the stream and store them into aStream. Return the number of bytes that were read, raising an exception if we could not read the full amount of data.