|
you know how it goes. you're 6 subroutines deep and suddenly you need a buffer. what do you do? for me it depends on the kind of buffer. If I need an array of objects, I use 16. double digits, power of 2. seems reasonable enough. if it's for a string, I use MAX_PATH. don't worry, I add a definition for non-Windows platforms. (the string does not have to be a file path.) if I need a byte array, I grab 64kB. some people might use 1MB but that seems wasteful imo
|
# ¿ Jun 27, 2017 01:34 |
|
|
# ¿ May 15, 2024 10:58 |
|
i only allocated one page for this thread so we are now in ~THE VOID~
|
# ¿ Jul 11, 2017 03:51 |