Class Memory
Public
Various utilities for handling arrays and memory.
Public Static Methods
MemSet<T>
(array, value, byteSize)
Sets all values in an array to a specific value faster than a loop.
Public
Static
MemSet<T>
(array, value, totalSize, byteSize)
Sets all values in an array to a specific value faster than a loop.
Public
Static
Realloc<T>
(arr, newSize, allocator, options=…)
Public
Static
Realloc<T>
(arr, newSize)
Public
Static
Resize<T>
(arr, newSize, allocator, options=…)
Allocate a new array if the size is different than the existing one.
Public
Static
ShrinkArray<T>
(arr, newLength)
Returns a new array with at most length newLength.
Public
Static
Swap<T>
(a, b)
Swaps the variables a and b.
Public
Static
UnsafeAppendBufferToArray<T>
(src)
Public
Static