public void Free() { MemOps.Free(Data); x = 0; Data = null; }
public void Free() { MemOps.Free(Data); x = 0; y = 0; z = 0; i = 0; j = 0; Data = null; }
// For 4D arrays of type: [i][j] of [x][y] and [i] of [x][y][z] public void Resize(int sizex, int sizey, int sizez, int sizei, int sizej, bool initialize = true) { MemOps.Free(Data); x = sizex; y = sizey; z = sizez; i = sizei; j = sizej; Data = MemOps.New(x * y * z * i * j, initialize); }
public void Resize(int sizex, int sizey, int sizez, bool initialize = true) { MemOps.Free(Data); x = sizex; y = sizey; z = sizez; i = 1; j = 1; Data = MemOps.New(x * y * z, initialize); }
public void Resize(int size, bool initialize = true) { MemOps.Free(Data); x = size; y = 1; z = 1; i = 1; j = 1; Data = MemOps.New(size, initialize); }
public ManagedIntList(int size) { x = size; Data = MemOps.IntList(size); }