RubyArray arr = (RubyArray) arrParam;
int count = arr.getLength();
checkBounds(context, offset, count * 2);
byte[] array = new byte[count];
for (int i = 0; i < array.length; ++i) {
array[i] = Util.int8Value((IRubyObject) arr.entry(i));
}
getMemoryIO().put(getOffset(offset), array, 0, array.length);
return this;
}
@JRubyMethod(name = { "get_array_of_int16", "get_array_of_short" }, required = 2)