private static final Map<AbstractMemoryPointer, Object> pointerSet
= new ConcurrentHashMap();
public static RubyClass createMemoryPointerClass(Ruby runtime) {
RubyModule module = FFIProvider.getModule(runtime);
RubyClass result = module.defineClassUnder(className,
module.getClass(AbstractMemory.ABSTRACT_MEMORY_RUBY_CLASS),
ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR);
result.defineAnnotatedMethods(AbstractMemoryPointer.class);
result.defineAnnotatedConstants(AbstractMemoryPointer.class);