default
core
corecore.IntArrayadd(int i) : boolean - Add the given integer value to this array.
add2(int i1, i2) : boolean - Add the given integer values to this array.
add3(int i1, i2, i3) : boolean - Add the given integer values to this array.
add4(int i1, i2, i3, i4) : boolean - Add the given integer values to this array.
addArray(Object array, int off, len) : boolean - Add the given array like object to this array.
addEmpty(int num) : int - Increase numElements by "num".
alloc(int max) : int - Allocate the given number of array elements.
allocAndFill(int num, i) : boolean - Allocate and set all used array elements to value "i".
contains(int i) : boolean - Check whether array contains the given integer value.
copyFrom(IntArray src, int off, len, destOff) - Copy elements from other array.
dec(int idx) - Decrement element at index 'idx'.
delete(int index) : boolean - Delete element at the given index.
delete2(int index) : boolean - Delete two elements at the given index.
delete3(int index) : boolean - Delete three elements at the given index.
delete4(int index) : boolean - Delete four elements at the given index.
empty() - Reset the number of used elements, numElements, to 0.
fill(int i) - Set all used array elements to value "i".
fillRegion(int off, len, val) - Fill a range of elements with a constant value.
findSubArrayOffset(IntArray ia) : int - Find offset of subarray "ia".
free() - Free array elements.
get(int index) : int - Return element at index "index".
getAbsMax() : int - Return biggest array element, not regarding sign.
getAbsMean() : float - Return average element value, not regarding sign.
getAbsMin() : int - Return smallest array element, not regarding sign.
getDefault(int index, def) : int - Return array element at 'index', or return 'def' when index is out of bounds.
getFirst() : int - Return first array element.
getLast() : int - Return last used array element.
getMax() : int - Return biggest array element.
getMaxElements() : int - Return total number of array elements.
getMean() : float - Return average element value.
getMin() : int - Return smallest array element.
getNumElements() : int - Return number of used array elements.
getNumUniqueValues() : int - Return number of unique values (ignore duplicates).
getRev(int index) : int - Return element value at (numElements - 1 - index).
getString() : String - Return string representation of this array.
getString2() : String - Return (x;y) pair string representation of this array.
getString3() : String - Return (x;y;z) tuple string representation of this array.
identity(int num) - Reallocate array to "num" elements and set element[i] to i.
inc(int idx) - Increment element at index 'idx'.
indexOf(int i, off) : int - Return index of element with value "i". -1 if no matching element was found.
indexOfNot(int i, off) : int - Return index of element that does not have value "i". -1 if no matching element was found.
insert(int index, i) : boolean - Insert new array element "i" before index "index".
isEmpty() : boolean - Check if array is empty (numElements == 0).
isEqual(Array o) : boolean - Compare to other array and return true if the array contents are equal.
join(Object a, b) - Join arrays 'a' and 'b'.
read16(Stream ifs, int num, destOff) : int - Read a sequence of 16bit short integers from the given input stream.
read32(Stream ifs, int num, destOff) : int - Read a sequence of 32bit integers from the given input stream.
read8(Stream ifs, int num, destOff) : int - Read a sequence of bytes from the given input stream.
realloc(int num) : boolean - Reallocate array.
rearrange(IntArray order) : boolean - Reorder elements according to given element order.
remove(int i) : boolean - Check whether array contains the given integer value and remove it if it does.
replace(int a, b) : int - Replace all occurences of 'a' with 'b' and return number of elements replaced.
replaceNeg(int b) : int - Replace all occurences of negative values with 'b' and return number of elements replaced.
reverse() - Reverse element order.
set(int index, val) - Set element at "index" to "val".
setNumElements(int num) - Set number of used elements to "num".
setRev(int index, val) - Set element at "numElements - 1 - index" to "val".
sortByValue(IntArray r) - Sort elements by value and return new element order in "r".
swap(int indexA, indexB) : boolean - Swap two elements.
swapByteOrder() - Swap byteorder of all elements.
useAll() - Mark all array elements used, i.e. set numElements = maxElements.
visit(IntArray src, int off, num) - Create a view into another IntArray object.
visitBytes(Object src, int off, num) : boolean - Create a view into another array-like object.
write16(Stream ifs, int num, srcOff) : int - Write a sequence of 16bit short integers to the given output stream.
write32(Stream ifs, int num, srcOff) : int - Write a sequence of 32bit integers to the given output stream.
write8(Stream ifs, int num, srcOff) : int - Write a sequence of 8bit bytes to the given output stream.
Method add | ||||||||||
Add the given integer value to this array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Resize array if necessary. | ||||||||||
Method add2 | ||||||||||||||||||||
Add the given integer values to this array. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
Resize array if necessary. | ||||||||||||||||||||
Method add3 | |||||||||||||||||||||||||
Add the given integer values to this array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Resize array if necessary. | |||||||||||||||||||||||||
Method add4 | ||||||||||||||||||||||||||||||
Add the given integer values to this array. | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Description | ||||||||||||||||||||||||||||||
Resize array if necessary. | ||||||||||||||||||||||||||||||
Method addArray | |||||||||||||||||||||||||
Add the given array like object to this array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Resize array if necessary. | |||||||||||||||||||||||||
Method addEmpty | ||||||||||
Increase numElements by "num". | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method alloc | ||||||||||
Allocate the given number of array elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The numElements member will be set to 0 after allocation and the maxElements memberwill be set to "max". | ||||||||||
Method allocAndFill | ||||||||||||||||||||
Allocate and set all used array elements to value "i". | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method contains | ||||||||||
Check whether array contains the given integer value. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method copyFrom | |||||||||||||||||||||||||
Copy elements from other array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method dec | |||||
Decrement element at index 'idx'. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
If the index is out of bounds, simply do nothing. |
Method delete | ||||||||||
Delete element at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method delete2 | ||||||||||
Delete two elements at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method delete3 | ||||||||||
Delete three elements at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method delete4 | ||||||||||
Delete four elements at the given index. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method empty | |||
Reset the number of used elements, numElements, to 0. | |||
Signature | |||
|
Method fill | |||||
Set all used array elements to value "i". | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method fillRegion | ||||||||||||||||||||
Fill a range of elements with a constant value. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
The region start/end will be clipped to (0;numElements). |
Method findSubArrayOffset | ||||||||||
Find offset of subarray "ia". | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method free | |||
Free array elements. | |||
Signature | |||
|
Method get | ||||||||||
Return element at index "index". | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return 0 if index is out of bounds. | ||||||||||
Method getAbsMax | |||||
Return biggest array element, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsMean | |||||
Return average element value, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsMin | |||||
Return smallest array element, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getDefault | ||||||||||||||||||||
Return array element at 'index', or return 'def' when index is out of bounds. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method getFirst | |||||
Return first array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getLast | |||||
Return last used array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMax | |||||
Return biggest array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMaxElements | |||||
Return total number of array elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMean | |||||
Return average element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMin | |||||
Return smallest array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumElements | |||||
Return number of used array elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumUniqueValues | |||||
Return number of unique values (ignore duplicates). | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRev | ||||||||||
Return element value at (numElements - 1 - index). | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return 0 if resulting index is out of bounds. | ||||||||||
Method getString | |||||
Return string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString2 | |||||
Return (x;y) pair string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString3 | |||||
Return (x;y;z) tuple string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method identity | |||||
Reallocate array to "num" elements and set element[i] to i. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method inc | |||||
Increment element at index 'idx'. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
If the index is out of bounds, simply do nothing. |
Method indexOf | ||||||||||||||||||||
Return index of element with value "i". -1 if no matching element was found. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method indexOfNot | ||||||||||||||||||||
Return index of element that does not have value "i". -1 if no matching element was found. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method insert | ||||||||||||||||||||
Insert new array element "i" before index "index". | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
The array will be resized if necessary. | ||||||||||||||||||||
Method isEmpty | |||||
Check if array is empty (numElements == 0). | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method isEqual | ||||||||||
Compare to other array and return true if the array contents are equal. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
(note) typecast other array elements to int when necessary. | ||||||||||
Method join | |
Join arrays 'a' and 'b'. | |
Signature | |
Arguments | |
Method read16 | |||||||||||||||||||||||||
Read a sequence of 16bit short integers from the given input stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The shorts will be extended to 32bit integers. | |||||||||||||||||||||||||
Method read32 | |||||||||||||||||||||||||
Read a sequence of 32bit integers from the given input stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method read8 | |||||||||||||||||||||||||
Read a sequence of bytes from the given input stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The bytes will be extended to 32bit integers. | |||||||||||||||||||||||||
Method realloc | ||||||||||
Reallocate array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Array elements will be discarded if the new array size is smallerthan the current size. New array elements are added if the new arraysize is smaller than the current size. | ||||||||||
Method rearrange | ||||||||||
Reorder elements according to given element order. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method remove | ||||||||||
Check whether array contains the given integer value and remove it if it does. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method replace | ||||||||||||||||||||
Replace all occurences of 'a' with 'b' and return number of elements replaced. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method replaceNeg | ||||||||||
Replace all occurences of negative values with 'b' and return number of elements replaced. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method reverse | |||
Reverse element order. | |||
Signature | |||
|
Method set | |||||||||||||||
Set element at "index" to "val". | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Updates numElements when index exceeds it (>=).
Silently do nothing when index exceed array size (>= maxElements). |
Method setNumElements | |||||
Set number of used elements to "num". | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
"num" is clamped to 0 resp. to the maxElements member. |
Method setRev | |||||||||||||||
Set element at "numElements - 1 - index" to "val". | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Silently do nothing when index exceed array size (<0 || >= maxElements). |
Method sortByValue | |||||
Sort elements by value and return new element order in "r". | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method swap | ||||||||||||||||||||
Swap two elements. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method swapByteOrder | |||
Swap byteorder of all elements. | |||
Signature | |||
|
Method useAll | |||
Mark all array elements used, i.e. set numElements = maxElements. | |||
Signature | |||
|
Method visit | ||||||||||||||||||||
Create a view into another IntArray object. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method visitBytes | |||||||||||||||||||||||||
Create a view into another array-like object. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Keep in mind not to delete the "src" array while this object is still alive! | |||||||||||||||||||||||||
Method write16 | |||||||||||||||||||||||||
Write a sequence of 16bit short integers to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The array elements will be truncated to 16bit. | |||||||||||||||||||||||||
Method write32 | |||||||||||||||||||||||||
Write a sequence of 32bit integers to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Method write8 | |||||||||||||||||||||||||
Write a sequence of 8bit bytes to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The array elements will be truncated to 8bit. | |||||||||||||||||||||||||
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59