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

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)

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 Int64Array.

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


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

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 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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 17:25:40 GMT