Smalltalk/X WebserverDocumentation of class 'SignedIntegerArray': | |
Class: SignedIntegerArrayInheritance:Object | +--Collection | +--SequenceableCollection | +--ArrayedCollection | +--UninterpretedBytes | +--AbstractNumberVector | +--UnboxedIntegerArray | +--SignedIntegerArray
Description:SignedIntegerArrays store 32bit signed integers in the range 16r-80000000..16r7FFFFFFF. In contrast to normal arrays (which store pointers to their elements), signedIntegerArrays store the values in a dense & compact way. Since the representation fits the underlying C-language systems representation of signed int32's, this is also useful to pass bulk data to c primitive code. SignedIntegerArrays can be used as literals i.e. you can enter SignedIntegerArray-constants as: #s32( element1 element2 .... elementN ) for example: #s32(-1 10 -128 127 0x7FFF -0x8000) Aliased as Int32Array. [memory requirements:] OBJ-HEADER + (size * 4) [caveat:] should probably be renamed to Int32Array (there is an alias named 'Int32Array', but when inspected, it presents itself as SignedIntegerArray) Class protocol:queries
|
|
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 30 Dec 2024 16:26:12 GMT |