eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'LongIntegerArray':

Home

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

Class: LongIntegerArray


Inheritance:

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

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

Description:


LongIntegerArrays store 64bit unsigned integers in the range 
0..16rFFFFFFFFFFFFFFFF.
In contrast to normal arrays (which store pointers to their elements),
longIntegerArrays store the values in a dense & compact way. 
Since the representation fits the underlying C-language systems representation
of unsigned 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 UnsignedInt64Array


Related information:

    ByteArray
    BooleanArray
    FloatArray
    DoubleArray
    Array
    WordArray
    SignedWordArray
    IntegerArray
    SignedIntegerArray
    SignedLongIntegerArray

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 LongIntegerArrays, this is 18446744073709551615 eg. 16rFFFFFFFFFFFFFFFF
(largest 64bit unsigned int)

o  minVal
the minimum value which can be stored in instances of me.
For LongIntegerArrays, this is 0



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 05:03:31 GMT