int newOffset = offset + fromIndex;
int newLength = toIndex - fromIndex;
subArrayCheck(newOffset, newLength);
ShortBuffer copy = elements.duplicate();
copy.position(newOffset);
copy.limit(newOffset + newLength);
return new SubBoundedShortBufferArrayImpl(this, copy);
}
/**
* Tells whether or not the array's content is resident in physical memory.