protected Pointer getPointer(Ruby runtime, long offset) { DirectMemoryIO ptr = (DirectMemoryIO) getMemoryIO().getMemoryIO(offset); return new BasePointer(runtime, ptr != null && !ptr.isNull() ? ptr : new NullMemoryIO(runtime)); }