Some MemoryBlock methods take size_t as parameter (getBitRange, setBitRange) yet they return int. This seems weird since, if you compile a program:
std::cout << "sizeof int == " << sizeof(int) << " sizeof size_t == " << sizeof(size_t) << std::endl;
the result is:
sizeof int == 4 sizeof size_t == 8
so the result might not fit into the return value (looks like size_t is 64bits)
Is this something i need to take care myslef ?