Optimized memory map read and write functions to support pointer offset