Beispiel #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));
 }
Beispiel #2
0
 private IRubyObject get(Ruby runtime, int index) {
   return aio.get(runtime, ptr, getOffset(index));
 }
Beispiel #3
0
 public IRubyObject get(
     ThreadContext context, StructLayout.Storage cache, Member m, IRubyObject ptr) {
   return op.get(context.getRuntime(), m.getMemoryIO(ptr), m.offset);
 }
Beispiel #4
0
 @JRubyMethod(name = "[]")
 public IRubyObject get(ThreadContext context, IRubyObject index) {
   return aio.get(context.getRuntime(), ptr, getOffset(index));
 }