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