the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "ArrayWithLength.h"
4
5
6class IntCache
7{
8private:
9
10 class ThreadStorage
11 {
12 public:
13 int maxSize;
14
15 vector<intArray> tcache;
16 vector<intArray> tallocated;
17
18 vector<intArray> cache;
19 vector<intArray> allocated;
20 vector<intArray> toosmall; // 4J added
21 ~ThreadStorage();
22 };
23 static DWORD tlsIdx;
24
25 static const int TINY_CUTOFF = 256;
26
27public:
28 static intArray allocate(int size);
29 static void releaseAll();
30
31 static void CreateNewThreadStorage();
32 static void ReleaseThreadStorage();
33 static void Reset(); // 4J added
34};