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