eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SignedLongIntegerArray':

Home

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

Class: SignedLongIntegerArray


Inheritance:

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

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

Description:


SignedLongIntegerArrays store 64bit signed integers in the range 
16r-8000000000000000..16r7FFFFFFFFFFFFFFF.
In contrast to normal arrays (which store pointers to their elements),
signedLongIntegerArrays store the values in a dense & compact way. 
Since the representation fits the underlying C-language systems representation
of signed longlong's, this is also useful to pass bulk data to c primitive code.
(the system makes certain, that the first longlong is aligned as required)

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


[caveat:]
    should probably be renamed to SignedInt64Array


Related information:

    ByteArray
    BooleanArray
    FloatArray
    DoubleArray
    Array
    WordArray
    SignedWordArray
    IntegerArray
    SignedIntegerArray
    LongIntegerArray

Class protocol:

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

o  maxVal
the maximum value which can be stored in instances of me.
For SignedLongIntegerArrays, this is 9223372036854775807 eg. 16r7FFFFFFFFFFFFFFF
(largest 64bit signed int)

o  minVal
the minimum value which can be stored in instances of me.
For SignedLongIntegerArrays, this is -9223372036854775808 eg. -16r8000000000000000
(smallest 64bit signed int)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 15:04:57 GMT