/** * Gets the value of the struct member corresponding to <tt>name</tt>. * * @param ptr The address of the structure in memory. * @param name The name of the member. * @return A ruby value for the native value of the struct member. */ @JRubyMethod(name = "get", required = 2) public IRubyObject get(ThreadContext context, IRubyObject ptr, IRubyObject name) { return getValue(context, name, nullStorage, ptr); }
/** * Gets the value of the struct member corresponding to <tt>name</tt>. * * @param ptr The address of the structure in memory. * @param name The name of the member. * @return A ruby value for the native value of the struct member. */ @JRubyMethod(name = "get", required = 2) public IRubyObject get(ThreadContext context, IRubyObject ptr, IRubyObject name) { return getValue(context, name, nullStorage, ptr); }
/** * Gets the value of the struct member corresponding to <tt>name</tt>. * * @param ptr The address of the structure in memory. * @param name The name of the member. * @return A ruby value for the native value of the struct member. */ @JRubyMethod(name = "get", required = 2) public IRubyObject get(ThreadContext context, IRubyObject ptr, IRubyObject name) { return getValue(context, name, nullStorage, ptr); }
/** * Gets the value of the struct member corresponding to <tt>name</tt>. * * @param ptr The address of the structure in memory. * @param name The name of the member. * @return A ruby value for the native value of the struct member. */ @JRubyMethod(name = "get", required = 2) public IRubyObject get(ThreadContext context, IRubyObject ptr, IRubyObject name) { return getValue(context, name, nullStorage, ptr); }