Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
PackedInt64Array¶
A packed array of 64-bit integers.
Description¶
An array specifically designed to hold 64-bit integer values. Packs data tightly, so it saves memory for large array sizes.
Note: This type stores signed 64-bit integers, which means it can take values in the interval [-2^63, 2^63 - 1]
, i.e. [-9223372036854775808, 9223372036854775807]
. Exceeding those bounds will wrap around. If you only need to pack 32-bit integers tightly, see PackedInt32Array for a more memory-friendly alternative.
Примечание
There are notable differences when using this API with C#. See API различия C# и GDScript for more information.
Constructors¶
PackedInt64Array ( ) |
|
PackedInt64Array ( PackedInt64Array from ) |
|
PackedInt64Array ( Array from ) |
Methods¶
void |
append_array ( PackedInt64Array array ) |
void |
clear ( ) |
duplicate ( ) |
|
void |
|
is_empty ( ) const |
|
void |
|
void |
reverse ( ) |
void |
|
size ( ) const |
|
void |
sort ( ) |
to_byte_array ( ) const |
Operators¶
operator != ( PackedInt64Array right ) |
|
operator + ( PackedInt64Array right ) |
|
operator == ( PackedInt64Array right ) |
|
operator [] ( int index ) |