@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 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 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 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; }
@JRubyMethod(name = "[]=") public IRubyObject setFieldValue(ThreadContext context, IRubyObject fieldName, IRubyObject fieldValue) { layout.getMember(context.runtime, fieldName).put(context, this, getMemory(), fieldValue); return fieldValue; }