The Trunk: Files-ul.162.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Files-ul.162.mcz

commits-2
Levente Uzonyi uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-ul.162.mcz

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

Name: Files-ul.162
Author: ul
Time: 24 August 2016, 9:23:41.082845 pm
UUID: 43f75097-2eb2-4c8f-b246-f1346ff30fef
Ancestors: Files-cmm.161

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

=============== Diff against Files-cmm.161 ===============

Item was changed:
  ----- Method: StandardFileStream>>next:putAll:startingAt: (in category 'read, write, position') -----
  next: anInteger putAll: aString startingAt: startIndex
  "Store the next anInteger elements from the given collection."
  rwmode ifFalse: [^ self error: 'Cannot write a read-only file'].
+ anInteger > 0 ifFalse: [ ^aString ].
  collection ifNotNil: [
  position < readLimit ifTrue: [ self flushReadBuffer ] ].
  self primWrite: fileID from: aString startingAt: startIndex count: anInteger.
  ^aString!