eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SignedIntegerArray':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SignedIntegerArray


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--UninterpretedBytes
               |
               +--AbstractNumberVector
                  |
                  +--UnboxedIntegerArray
                     |
                     +--SignedIntegerArray

Package:
stx:libbasic
Category:
Collections-Arrayed
Version:
rev: 1.3 date: 2019/03/24 11:26:56
user: cg
file: SignedIntegerArray.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

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.

[memory requirements:]
    OBJ-HEADER + (size * 4)


[caveat:]
    should probably be renamed to SignedInt32Array


Related information:

    ByteArray
    BooleanArray
    FloatArray
    DoubleArray
    Array
    SignedWordArray
    WordArray
    IntegerArray
    LongIntegerArray
    SignedLongIntegerArray

Class protocol:

queries
o  elementByteSize
for bit-like containers, return the number of bytes stored per element.
Here, 4 is returned

o  maxVal
the maximum value which can be stored in instances of me.
For SignedIntegerArrays, this is 2147483647, eg. 16r7FFFFFFF (largest 32bit signed int)

o  minVal
the minimum value which can be stored in instances of me.
For SignedIntegerArrays, this is -2147483648 eg. -16r80000000 (smallest 32bit signed int)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 01:19:28 GMT