getShort
Absolute get method for reading a short value.
Reads two bytes at the given index, composing them into a short value according to the current byte order.
Return
The short value at the given index
Parameters
index
The index from which the bytes will be read
Throws
If index is negative or not smaller than the buffer's limit, minus one
Relative get method for reading a short value.
Reads the next two bytes at this buffer's current position, composing them into a short value according to the current byte order, and then increments the position by two.
Return
The short value at the buffer's current position
Throws
If there are fewer than two bytes remaining in this buffer