private final long getOffset(IRubyObject index) { return getOffset(Util.int32Value(index)); }
private final long getOffset(IRubyObject index) { return getOffset(Util.int32Value(index)); }
private IRubyObject get(ThreadContext context, int index) { IRubyObject obj; if (valueCache != null && (obj = valueCache[index]) != null) { return obj; } putCachedValue(index, obj = aio.get(context, ptr, getOffset(index))); return obj; }
private IRubyObject get(ThreadContext context, int index) { IRubyObject obj; if (valueCache != null && (obj = valueCache[index]) != null) { return obj; } putCachedValue(index, obj = aio.get(context, ptr, getOffset(index))); return obj; }
@JRubyMethod(name = "[]=") public IRubyObject put(ThreadContext context, IRubyObject index, IRubyObject value) { int idx = Util.int32Value(index); putCachedValue(idx, value); aio.put(context, ptr, getOffset(idx), value); return value; }
@JRubyMethod(name = "[]=") public IRubyObject put(ThreadContext context, IRubyObject index, IRubyObject value) { int idx = Util.int32Value(index); putCachedValue(idx, value); aio.put(context, ptr, getOffset(idx), value); return value; }
private IRubyObject get(ThreadContext context, int index) { IRubyObject obj; if (valueCache != null && (obj = valueCache[index]) != null) { return obj; } putCachedValue(index, obj = aio.get(context, ptr, getOffset(index))); return obj; }
@JRubyMethod(name = "[]=") public IRubyObject put(ThreadContext context, IRubyObject index, IRubyObject value) { int idx = Util.int32Value(index); putCachedValue(idx, value); aio.put(context, ptr, getOffset(idx), value); return value; }
@JRubyMethod(name = "[]=") public IRubyObject put(ThreadContext context, IRubyObject index, IRubyObject value) { int idx = Util.int32Value(index); putCachedValue(idx, value); aio.put(context, ptr, getOffset(idx), value); return value; }
private IRubyObject get(ThreadContext context, int index) { IRubyObject obj; if (valueCache != null && (obj = valueCache[index]) != null) { return obj; } putCachedValue(index, obj = aio.get(context, ptr, getOffset(index))); return obj; }