To cut down on duplicate functions relating to memoryview and physical memory we should create simple macros.