Not using memset causes files to load improperly, yet I feel it is unnecessary. I am using
fread, reading 1 byte before reallocating to a
+= 1 size, earlier I loaded 2048 bytes at a time and doubled the size of
cache after each read which had similar results to what I am currently doing.
Code removed per Academic Honesty