The Trunk: Collections-eem.811.mcz

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

The Trunk: Collections-eem.811.mcz

commits-2
Eliot Miranda uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-eem.811.mcz

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

Name: Collections-eem.811
Author: eem
Time: 31 October 2018, 10:44:24.941583 am
UUID: a01f9f2a-1915-4520-8dbd-dfe7f43b1026
Ancestors: Collections-ul.810

Use the integerAt[Put] primitive to implement signedByteAt:[put:]

=============== Diff against Collections-ul.810 ===============

Item was changed:
  ----- Method: ByteArray>>signedByteAt: (in category 'platform independent access') -----
  signedByteAt: index
+ "Answer an 8-bit signed integer quantity from the given byte index."
+ <primitive: 165>
- "Return an 8-bit signed integer quantity from the given byte index."
-
  | byte |
  (byte := self at: index) <= 16r7F ifTrue: [ ^byte ].
  ^byte - 16r100!

Item was changed:
  ----- Method: ByteArray>>signedByteAt:put: (in category 'platform independent access') -----
  signedByteAt: index put: anInteger
  "Store an 8-bit signed integer quantity at the given byte index."
+ <primitive: 166>
-
  anInteger >= 0 ifTrue: [ ^self at: index put: anInteger ].
  self at: index put: anInteger + 16r100.
  ^anInteger!