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