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.8 date: 2022/08/10 10:08:08
user: cg
file: LongIntegerArray.st directory: libbasic
module: stx stc-classLibrary: libbasic

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)

LongIntegerArrays can be used as literals i.e. you can enter LongIntegerArray-constants as: 
    #u64( element1 element2 .... elementN ) 
    #s64( element1 element2 .... elementN ) 
for example:
    #u64(1 2 3 4 5 6 7 8)
    #s64(1 2 3 4 -1 -2 -3 -4)

Aliased as UInt64Array.

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


[caveat:]
    should probably be renamed to UInt64Array
    (there is an alias named 'UInt64Array', but when inspected,
    it presents itself as LongIntegerArray)

copyright

COPYRIGHT (c) 1998 by Claus Gittinger / eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

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

o  literalTokenPrefix

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 03:49:56 GMT