robot
robot copied to clipboard
Simplify memory caching allocation
This and this can be rewritten to use the std::vector resize method. Changing Cache from uint8* into vector<uint8> would shift memory allocation responsibilities to STL resulting in less code for us. One potential issue, however, is ensuring that the initial creation and resize doesn't cause the data to be reset.