LocalL16UInt64Array (struct)

The LocalL16UInt64Array is an efficient container for storing UInt64 values, where up to 16 values can be added without requiring memory allocations on the heap. This allows to efficiently contain array of values, where arrays are usually smaller than 16.

注釈

Avoiding frequent heap memory allocations can have a significant performance impact. Using this type can avoid the memory allocation overhead in some scenarios (eg: various PolygonMesh methods use local arrays).

LocalL16UInt64Array LocalL16UInt64Array LocalL16UInt64Array

Members

UInt64[16] first16  
UInt64[] others  
UInt32 count  

Methods

  LocalL16UInt64Array ( in LocalL16UInt64Array other )
  LocalL16UInt64Array ()
LocalL16UInt64Array clone ? ()
UInt64 get ? ( in UInt32 index )
String getString ? ()
  push ! ( in UInt64 value )
  resize ! ( in UInt32 size )
  set ! ( in UInt32 index, in UInt64 value )
UInt32 size ? ()

Operators

LocalL16UInt64Array = ( Param other )

Methods in detail

LocalL16UInt64Array ( in LocalL16UInt64Array other )

copy constructor


LocalL16UInt64Array ()

default constructor


LocalL16UInt64Array LocalL16UInt64Array.clone? ()

clone method


UInt64 LocalL16UInt64Array.get? ( in UInt32 index )

returns the value stored at an index.


String LocalL16UInt64Array.getString? ()

returns a description of the array as a String


LocalL16UInt64Array.push! ( in UInt64 value )

appends a new UInt64 value to the end of the array


LocalL16UInt64Array.resize! ( in UInt32 size )

resizes the array.


LocalL16UInt64Array.set! ( in UInt32 index, in UInt64 value )

sets the value stored at an index


UInt32 LocalL16UInt64Array.size? ()

returns the size of the array (number of UInt64 elements stored).

Operators in detail

LocalL16UInt64Array = ( Param other )

copy the content of another LocalL16UInt64Array