C++ requires typecasts from void* to uint8_t* (even if C doesn't)
fixed return value mismatch in algoHeapCurrentSize()