[squeak-dev] The Trunk: Network-nice.64.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Mar 19 18:19:29 UTC 2010

Nicolas Cellier uploaded a new version of Network to project The Trunk:

==================== Summary ====================

Name: Network-nice.64
Author: nice
Time: 19 March 2010, 7:19:19.582 pm
UUID: 9125ebe8-7208-2342-9369-98e7fded9a93
Ancestors: Network-nice.63

Let nextPut: answer the put object.
Same for nextPutAll:, answer the collection argument

=============== Diff against Network-nice.63 ===============

Item was changed:
  ----- Method: SocketStream>>nextPutAll: (in category 'stream out') -----
  nextPutAll: aCollection
  	"Put a String or a ByteArray onto the stream.
  	Currently a large collection will allocate a large buffer."
  	| toPut |
  	toPut := binary ifTrue: [aCollection asByteArray] ifFalse: [aCollection asString].
  	self adjustOutBuffer: toPut size.
  	outBuffer replaceFrom: outNextToWrite to: outNextToWrite + toPut size - 1 with: toPut startingAt: 1.
  	outNextToWrite := outNextToWrite + toPut size.
+ 	self checkFlush.
+ 	^aCollection!
- 	self checkFlush!

More information about the Squeak-dev mailing list