[squeak-dev] The Trunk: Network-ul.183.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Aug 27 17:21:27 UTC 2016


Levente Uzonyi uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-ul.183.mcz

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

Name: Network-ul.183
Author: ul
Time: 27 August 2016, 7:06:50.616798 pm
UUID: 12bf0b6e-cf75-400f-ad5f-03aaa9b6db57
Ancestors: Network-ul.182

Don't let #next:putAll:startingAt: roll back the receiver when the first argument is negative.

=============== Diff against Network-ul.182 ===============

Item was changed:
  ----- Method: SocketStream>>next:putAll:startingAt: (in category 'stream out') -----
  next: n putAll: aCollection startingAt: startIndex
  	"Put a String or a ByteArray onto the stream.
  	Currently a large collection will allocate a large buffer.
  	Warning: this does not work with WideString: they have to be converted first."
  
+ 	n > 0 ifFalse: [ ^aCollection ].
  	self adjustOutBuffer: n.
  	outBuffer replaceFrom: outNextToWrite to: outNextToWrite + n - 1 with: aCollection startingAt: startIndex.
  	outNextToWrite := outNextToWrite + n.
  	self checkFlush.
  	^aCollection!



More information about the Squeak-dev mailing list