LocalL8UInt8Array (struct)

The LocalL8UInt8Array is an efficient container for storing UInt8 values, where up to 8 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 8.

注釈

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

LocalL8UInt8Array LocalL8UInt8Array LocalL8UInt8Array

Members

UInt8[8] first8  
UInt8[] others  
UInt32 count  

Methods

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

Operators

LocalL8UInt8Array = ( Param other )

Methods in detail

LocalL8UInt8Array ( in LocalL8UInt8Array other )

copy constructor


LocalL8UInt8Array ()

default constructor


LocalL8UInt8Array LocalL8UInt8Array.clone? ()

clone method


UInt8 LocalL8UInt8Array.get? ( in UInt32 index )

returns the value stored at an index.


String LocalL8UInt8Array.getString? ()

returns a description of the array as a String


LocalL8UInt8Array.push! ( in UInt8 value )

appends a new UInt8 value to the end of the array


LocalL8UInt8Array.resize! ( in UInt32 size )

resizes the array.


LocalL8UInt8Array.set! ( in UInt32 index, in UInt8 value )

sets the value stored at an index


UInt32 LocalL8UInt8Array.size? ()

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

Operators in detail

LocalL8UInt8Array = ( Param other )

copy the content of another LocalL8UInt8Array