/** rb_ary_store * */ public final IRubyObject store(long index, IRubyObject value) { if (index < 0 && (index += realLength) < 0) throw getRuntime().newIndexError("index " + (index - realLength) + " out of array"); modify(); if (index >= realLength) { int valuesLength = values.length - begin; if (index >= valuesLength) storeRealloc(index, valuesLength); realLength = (int) index + 1; } safeArraySet(values, begin + (int) index, value); return value; }
/** rb_ary_store * */ public final IRubyObject store(long index, IRubyObject value) { if (index < 0 && (index += realLength) < 0) throw getRuntime().newIndexError("index " + (index - realLength) + " out of array"); modify(); if (index >= realLength) { int valuesLength = values.length - begin; if (index >= valuesLength) storeRealloc(index, valuesLength); realLength = (int) index + 1; } safeArraySet(values, begin + (int) index, value); return value; }
/** rb_ary_store * */ public IRubyObject store(long index, IRubyObject value) { if (index < 0 && (index += realLength) < 0) { throw getRuntime().newIndexError("index " + (index - realLength) + " out of array"); } modify(); if (index >= realLength) { int valuesLength = values.length - begin; if (index >= valuesLength) storeRealloc(index, valuesLength); realLength = (int) index + 1; } safeArraySet(values, begin + (int) index, value); return value; }
/** rb_ary_store * */ public IRubyObject store(long index, IRubyObject value) { if (index < 0 && (index += realLength) < 0) { throw getRuntime().newIndexError("index " + (index - realLength) + " out of array"); } modify(); if (index >= realLength) { int valuesLength = values.length - begin; if (index >= valuesLength) storeRealloc(index, valuesLength); realLength = (int) index + 1; } safeArraySet(values, begin + (int) index, value); return value; }