LocalL32UInt32Array (struct)

The LocalL32UInt32Array is an efficient container for storing UInt32 values, where up to 32 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 32.

注釈

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).

LocalL32UInt32Array LocalL32UInt32Array LocalL32UInt32Array

Members

UInt32[32] first32  
UInt32[] others  
UInt32 count  

Methods

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

Operators

LocalL32UInt32Array = ( Param other )

Methods in detail

LocalL32UInt32Array ( in LocalL32UInt32Array other )

copy constructor


LocalL32UInt32Array ()

default constructor


LocalL32UInt32Array LocalL32UInt32Array.clone? ()

clone method


UInt32 LocalL32UInt32Array.get? ( in UInt32 index )

returns the value stored at an index.


String LocalL32UInt32Array.getString? ()

returns a description of the array as a String


LocalL32UInt32Array.push! ( in UInt32 value )

appends a new UInt32 value to the end of the array


LocalL32UInt32Array.resize! ( in UInt32 size )

resizes the array.


LocalL32UInt32Array.set! ( in UInt32 index, in UInt32 value )

sets the value stored at an index


UInt32 LocalL32UInt32Array.size? ()

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

Operators in detail

LocalL32UInt32Array = ( Param other )

copy the content of another LocalL32UInt32Array