robot icon indicating copy to clipboard operation
robot copied to clipboard

Simplify memory caching allocation

Open dkrutsko opened this issue 9 years ago • 0 comments

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.

dkrutsko avatar Dec 31 '16 21:12 dkrutsko