get_memory_data uses uintptr_t type to accurately storing the memory address in 64-bit platforms