[squeak-dev] FFI: FFI-Kernel-eem.185.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Jul 27 01:44:28 UTC 2021
Eliot Miranda uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-eem.185.mcz
==================== Summary ====================
Name: FFI-Kernel-eem.185
Author: eem
Time: 26 July 2021, 6:44:27.357344 pm
UUID: 471b6e6a-c09f-4759-ad28-b029faa9d289
Ancestors: FFI-Kernel-eem.184
Make the handle:at:[put:] mechanism work for the new accessors.
=============== Diff against FFI-Kernel-eem.184 ===============
Item was changed:
----- Method: IntegerReadWriteSend>>handle:at: (in category 'evaluating') -----
handle: receiver at: byteOffset
"Read."
+ ^arguments size = 1
+ ifTrue: [receiver perform: selector with: byteOffset]
+ ifFalse:
+ [receiver
+ perform: selector
+ with: byteOffset
+ with: (arguments at: 2) "byteSize"
+ with: (arguments at: 3)] "isSigned"!
- ^ receiver
- perform: selector
- with: byteOffset
- with: (arguments at: 2) "byteSize"
- with: (arguments at: 3) "isSigned"!
Item was changed:
----- Method: IntegerReadWriteSend>>handle:at:put: (in category 'evaluating') -----
handle: receiver at: byteOffset put: integerValue
"Write."
+ arguments size = 2
+ ifTrue:
+ [receiver perform: selector with: byteOffset with: integerValue]
+ ifFalse:
+ [receiver
+ perform: selector
+ with: byteOffset
+ with: integerValue
+ with: (arguments at: 3) "byteSize"
+ with: (arguments at: 4)]. "isSigned"
+ ^integerValue!
-
- receiver
- perform: selector
- with: byteOffset
- with: integerValue
- with: (arguments at: 3) "byteSize"
- with: (arguments at: 4). "isSigned"
- ^ integerValue!
More information about the Squeak-dev
mailing list
|