예제 #1
0
 public IRubyObject get(
     ThreadContext context, StructLayout.Storage cache, Member m, IRubyObject ptr) {
   // Read an int from the native memory, then upcall to the ruby value
   // lookup code to convert it to the appropriate symbol
   return m.type.callMethod(
       context, "find", op.get(context.getRuntime(), m.getMemoryIO(ptr), m.offset));
 }
예제 #2
0
 private IRubyObject get(Ruby runtime, int index) {
   return aio.get(runtime, ptr, getOffset(index));
 }
예제 #3
0
 public IRubyObject get(
     ThreadContext context, StructLayout.Storage cache, Member m, IRubyObject ptr) {
   return op.get(context.getRuntime(), m.getMemoryIO(ptr), m.offset);
 }
예제 #4
0
 @JRubyMethod(name = "[]")
 public IRubyObject get(ThreadContext context, IRubyObject index) {
   return aio.get(context.getRuntime(), ptr, getOffset(index));
 }