Patched parseMemory function to return mem value directly when on iOS