text: public override java.nio.ShortBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}