public BoundedShortArray offset(int offset) {
int newOffset = elements.position() + offset;
int newLength = elements.remaining() - offset;
subArrayCheck(newOffset, newLength);
ShortBuffer copy = elements.duplicate();
copy.position(newOffset);
return new SubBoundedShortBufferArrayImpl(this, copy);
}
/**
* <p>Returns a new sub array object for the specified {@code length}. Note that {@code length} must be smaller than