/** * Returns a {@link Field} descriptor for a struct field. * * @param name The name of the struct field. * @return A <tt>Member</tt> descriptor. */ final Field getField(Ruby runtime, IRubyObject name) { return getMember(runtime, name).field; }
/** * Returns a {@link Field} descriptor for a struct field. * * @param name The name of the struct field. * @return A <tt>Member</tt> descriptor. */ final Field getField(Ruby runtime, IRubyObject name) { return getMember(runtime, name).field; }
/** * Returns a {@link Field} descriptor for a struct field. * * @param name The name of the struct field. * @return A <tt>Member</tt> descriptor. */ final Field getField(Ruby runtime, IRubyObject name) { return getMember(runtime, name).field; }
/** * Returns a {@link Field} descriptor for a struct field. * * @param name The name of the struct field. * @return A <tt>Member</tt> descriptor. */ final Field getField(Ruby runtime, IRubyObject name) { return getMember(runtime, name).field; }
final IRubyObject getValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } return getMember(context.runtime, name).get(context, cache, (AbstractMemory) ptr); }
final void putValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr, IRubyObject value) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } getMember(context.runtime, name).put(context, cache, (AbstractMemory) ptr, value); }
final IRubyObject getValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } return getMember(context.runtime, name).get(context, cache, (AbstractMemory) ptr); }
final void putValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr, IRubyObject value) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } getMember(context.runtime, name).put(context, cache, (AbstractMemory) ptr, value); }
@JRubyMethod(name = "[]=") public IRubyObject setFieldValue(ThreadContext context, IRubyObject fieldName, IRubyObject fieldValue) { layout.getMember(context.runtime, fieldName).put(context, this, getMemory(), fieldValue); return fieldValue; }
final void putValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr, IRubyObject value) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } getMember(context.runtime, name).put(context, cache, (AbstractMemory) ptr, value); }
@JRubyMethod(name = "[]=") public IRubyObject setFieldValue(ThreadContext context, IRubyObject fieldName, IRubyObject fieldValue) { layout.getMember(context.runtime, fieldName).put(context, this, getMemory(), fieldValue); return fieldValue; }
final IRubyObject getValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } return getMember(context.runtime, name).get(context, cache, (AbstractMemory) ptr); }
@JRubyMethod(name = "[]=") public IRubyObject setFieldValue(ThreadContext context, IRubyObject fieldName, IRubyObject fieldValue) { layout.getMember(context.runtime, fieldName).put(context, this, getMemory(), fieldValue); return fieldValue; }
final void putValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr, IRubyObject value) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } getMember(context.runtime, name).put(context, cache, (AbstractMemory) ptr, value); }
@JRubyMethod(name = "[]=") public IRubyObject setFieldValue(ThreadContext context, IRubyObject fieldName, IRubyObject fieldValue) { layout.getMember(context.runtime, fieldName).put(context, this, getMemory(), fieldValue); return fieldValue; }
final IRubyObject getValue(ThreadContext context, IRubyObject name, Storage cache, IRubyObject ptr) { if (!(ptr instanceof AbstractMemory)) { throw context.runtime.newTypeError(ptr, context.runtime.getFFI().memoryClass); } return getMember(context.runtime, name).get(context, cache, (AbstractMemory) ptr); }
@JRubyMethod(name = "[]") public IRubyObject getFieldValue(ThreadContext context, IRubyObject fieldName) { return layout.getMember(context.runtime, fieldName).get(context, this, getMemory()); }
@JRubyMethod(name = "[]") public IRubyObject getFieldValue(ThreadContext context, IRubyObject fieldName) { return layout.getMember(context.runtime, fieldName).get(context, this, getMemory()); }
@JRubyMethod(name = "[]") public IRubyObject getFieldValue(ThreadContext context, IRubyObject fieldName) { return layout.getMember(context.runtime, fieldName).get(context, this, getMemory()); }
@JRubyMethod(name = "[]") public IRubyObject getFieldValue(ThreadContext context, IRubyObject fieldName) { return layout.getMember(context.runtime, fieldName).get(context, this, getMemory()); }