23964
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
20652
|
3 |
"
|
|
4 |
COPYRIGHT (c) 1998 by Claus Gittinger / eXept Software AG
|
|
5 |
All Rights Reserved
|
|
6 |
|
|
7 |
This software is furnished under a license and may be used
|
|
8 |
only in accordance with the terms of that license and with the
|
|
9 |
inclusion of the above copyright notice. This software may not
|
|
10 |
be provided or otherwise made available to, or used by, any
|
|
11 |
other person. No title to or ownership of the software is
|
|
12 |
hereby transferred.
|
|
13 |
"
|
|
14 |
"{ Package: 'stx:libbasic' }"
|
|
15 |
|
|
16 |
"{ NameSpace: Smalltalk }"
|
|
17 |
|
|
18 |
UnboxedIntegerArray variableLongLongSubclass:#LongIntegerArray
|
|
19 |
instanceVariableNames:''
|
|
20 |
classVariableNames:''
|
|
21 |
poolDictionaries:''
|
|
22 |
category:'Collections-Arrayed'
|
|
23 |
!
|
|
24 |
|
|
25 |
!LongIntegerArray class methodsFor:'documentation'!
|
|
26 |
|
|
27 |
copyright
|
|
28 |
"
|
|
29 |
COPYRIGHT (c) 1998 by Claus Gittinger / eXept Software AG
|
|
30 |
All Rights Reserved
|
|
31 |
|
|
32 |
This software is furnished under a license and may be used
|
|
33 |
only in accordance with the terms of that license and with the
|
|
34 |
inclusion of the above copyright notice. This software may not
|
|
35 |
be provided or otherwise made available to, or used by, any
|
|
36 |
other person. No title to or ownership of the software is
|
|
37 |
hereby transferred.
|
|
38 |
"
|
|
39 |
!
|
|
40 |
|
|
41 |
documentation
|
|
42 |
"
|
|
43 |
LongIntegerArrays store 64bit unsigned integers in the range
|
|
44 |
0..16rFFFFFFFFFFFFFFFF.
|
|
45 |
In contrast to normal arrays (which store pointers to their elements),
|
|
46 |
longIntegerArrays store the values in a dense & compact way.
|
|
47 |
Since the representation fits the underlying C-language systems representation
|
|
48 |
of unsigned longlong's, this is also useful to pass bulk data to c primitive code.
|
|
49 |
(the system makes certain, that the first longlong is aligned as required)
|
|
50 |
|
|
51 |
[memory requirements:]
|
|
52 |
OBJ-HEADER + (size * 8)
|
|
53 |
|
|
54 |
[see also:]
|
|
55 |
ByteArray BooleanArray FloatArray DoubleArray Array
|
|
56 |
WordArray SignedWordArray IntegerArray SignedIntegerArray
|
|
57 |
SignedLongIntegerArray
|
|
58 |
|
23964
|
59 |
[caveat:]
|
|
60 |
should probably be renamed to UnsignedInt64Array
|
|
61 |
|
20652
|
62 |
[author:]
|
|
63 |
Claus Gittinger
|
|
64 |
"
|
|
65 |
! !
|
|
66 |
|
|
67 |
!LongIntegerArray class methodsFor:'queries'!
|
|
68 |
|
|
69 |
elementByteSize
|
|
70 |
"for bit-like containers, return the number of bytes stored per element.
|
|
71 |
Here, 8 is returned"
|
|
72 |
|
|
73 |
^ 8
|
|
74 |
|
|
75 |
"Created: / 15-09-2011 / 14:11:59 / cg"
|
|
76 |
!
|
|
77 |
|
|
78 |
maxVal
|
|
79 |
"the maximum value which can be stored in instances of me.
|
|
80 |
For LongIntegerArrays, this is 18446744073709551615 eg. 16rFFFFFFFFFFFFFFFF
|
|
81 |
(largest 64bit unsigned int)"
|
|
82 |
|
|
83 |
^ 16rFFFFFFFFFFFFFFFF
|
|
84 |
!
|
|
85 |
|
|
86 |
minVal
|
|
87 |
"the minimum value which can be stored in instances of me.
|
|
88 |
For LongIntegerArrays, this is 0"
|
|
89 |
|
|
90 |
^ 0
|
|
91 |
! !
|
|
92 |
|
|
93 |
!LongIntegerArray class methodsFor:'documentation'!
|
|
94 |
|
|
95 |
version
|
|
96 |
^ '$Header$'
|
|
97 |
!
|
|
98 |
|
|
99 |
version_CVS
|
|
100 |
^ '$Header$'
|
|
101 |
! !
|
|
102 |
|