@Override
public MutableIntArray length(int length) {
int offset = elements.position();
subArrayCheck(offset, length);
IntBuffer copy = elements.duplicate();
copy.limit(offset + length);
return new SubBoundedIntBufferArrayImpl(this, copy);
}
/**
* Convenience method, combining {@code offset(int)} and {@code length(int)}.