Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

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.

Bemerkung

There are notable differences when using this API with C#. See C# API Unterschiede zu GDScript for more information.

Constructors

PackedInt64Array

PackedInt64Array ( )

PackedInt64Array

PackedInt64Array ( PackedInt64Array from )

PackedInt64Array

PackedInt64Array ( Array from )

Methods

bool

append ( int value )

void

append_array ( PackedInt64Array array )

int

bsearch ( int value, bool before=true )

void

clear ( )

int

count ( int value ) const

PackedInt64Array

duplicate ( )

void

fill ( int value )

int

find ( int value, int from=0 ) const

bool

has ( int value ) const

int

insert ( int at_index, int value )

bool

is_empty ( ) const

bool

push_back ( int value )

void

remove_at ( int index )

int

resize ( int new_size )

void

reverse ( )

int

rfind ( int value, int from=-1 ) const

void

set ( int index, int value )

int

size ( ) const

PackedInt64Array

slice ( int begin, int end=2147483647 ) const

void