RubyModule module = FFIProvider.getModule(runtime);
RubyClass result = module.defineClassUnder(ABSTRACT_BUFFER_RUBY_CLASS,
module.getClass(AbstractMemory.ABSTRACT_MEMORY_RUBY_CLASS),
ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR);
result.defineAnnotatedMethods(AbstractBuffer.class);
result.defineAnnotatedConstants(AbstractBuffer.class);
return result;
}
protected AbstractBuffer(Ruby runtime, RubyClass klass, MemoryIO io, long offset, long size) {