Nicolas Cellier uploaded a new version of Balloon to project The Trunk:
http://source.squeak.org/trunk/Balloon-nice.28.mcz==================== Summary ====================
Name: Balloon-nice.28
Author: nice
Time: 13 November 2015, 12:40:49.206 am
UUID: a3acdfcd-9c29-4526-ac82-172c2d70f71c
Ancestors: Balloon-eem.27
Pass a boolean to startUpFrom: indicating whether the object came from a different endian machine or not.
=============== Diff against Balloon-eem.27 ===============
Item was changed:
----- Method: ShortIntegerArray class>>startUpFrom: (in category 'class initialization') -----
+ startUpFrom: endiannessHasToBeFixed
- startUpFrom: anImageSegment
"In this case, do we need to swap word halves when reading this segement?"
+ ^endiannessHasToBeFixed
- ^ (Smalltalk endianness) ~~ (anImageSegment endianness)
ifTrue: [Message selector: #swapShortObjects] "will be run on each instance"
ifFalse: [nil].
!
Item was changed:
ShortIntegerArray variableWordSubclass: #ShortPointArray
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Balloon-Collections'!
+ !ShortPointArray commentStamp: 'nice 11/12/2015 23:50' prior: 0!
+ This class stores points that are in short integer range (e.g., -32768 <= value <= 32767). It is used to pass data efficiently to the primitive level during high-bandwidth 2D graphics operations.!
- !ShortPointArray commentStamp: '<historical>' prior: 0!
- This class stores points that are in short integer range (e.g., -32767 <= value <= 32768). It is used to pass data efficiently to the primitive level during high-bandwidth 2D graphics operations.!
Item was changed:
----- Method: ShortRunArray class>>startUpFrom: (in category 'class initialization') -----
+ startUpFrom: endiannessHasToBeFixed
- startUpFrom: anImageSegment
"In this case, do we need to swap word halves when reading this segement?"
+ ^endiannessHasToBeFixed
- ^Smalltalk endianness ~~ anImageSegment endianness
ifTrue: [Message selector: #swapRuns "will be run on each instance"]
ifFalse: [nil]!