23962
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
20650
|
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 variableSignedLongLongSubclass:#SignedLongIntegerArray
|
|
19 |
instanceVariableNames:''
|
|
20 |
classVariableNames:''
|
|
21 |
poolDictionaries:''
|
|
22 |
category:'Collections-Arrayed'
|
|
23 |
!
|
|
24 |
|
|
25 |
!SignedLongIntegerArray 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 |
SignedLongIntegerArrays store 64bit signed integers in the range
|
22271
|
44 |
16r-8000000000000000..16r7FFFFFFFFFFFFFFF.
|
20650
|
45 |
In contrast to normal arrays (which store pointers to their elements),
|
|
46 |
signedLongIntegerArrays store the values in a dense & compact way.
|
|
47 |
Since the representation fits the underlying C-language systems representation
|
|
48 |
of signed 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 |
LongIntegerArray
|
|
58 |
|
23962
|
59 |
[caveat:]
|
|
60 |
should probably be renamed to SignedInt64Array
|
|
61 |
|
20650
|
62 |
[author:]
|
|
63 |
Claus Gittinger
|
|
64 |
"
|
|
65 |
! !
|
|
66 |
|
22271
|
67 |
|
|
68 |
|
20650
|
69 |
!SignedLongIntegerArray class methodsFor:'queries'!
|
|
70 |
|
|
71 |
elementByteSize
|
|
72 |
"for bit-like containers, return the number of bytes stored per element.
|
|
73 |
Here, 8 is returned"
|
|
74 |
|
|
75 |
^ 8
|
|
76 |
|
|
77 |
"Created: / 15-09-2011 / 14:11:31 / cg"
|
|
78 |
!
|
|
79 |
|
|
80 |
maxVal
|
|
81 |
"the maximum value which can be stored in instances of me.
|
|
82 |
For SignedLongIntegerArrays, this is 9223372036854775807 eg. 16r7FFFFFFFFFFFFFFF
|
|
83 |
(largest 64bit signed int)"
|
|
84 |
|
|
85 |
^ 16r7FFFFFFFFFFFFFFF
|
|
86 |
!
|
|
87 |
|
|
88 |
minVal
|
|
89 |
"the minimum value which can be stored in instances of me.
|
|
90 |
For SignedLongIntegerArrays, this is -9223372036854775808 eg. -16r8000000000000000
|
|
91 |
(smallest 64bit signed int)"
|
|
92 |
|
22271
|
93 |
^ 16r-8000000000000000
|
|
94 |
|
|
95 |
"Modified (format): / 19-09-2017 / 16:31:35 / stefan"
|
20650
|
96 |
! !
|
|
97 |
|
22271
|
98 |
|
|
99 |
|
20650
|
100 |
!SignedLongIntegerArray class methodsFor:'documentation'!
|
|
101 |
|
|
102 |
version
|
|
103 |
^ '$Header$'
|
|
104 |
!
|
|
105 |
|
|
106 |
version_CVS
|
|
107 |
^ '$Header$'
|
|
108 |
! !
|
|
109 |
|