toUShort

Returns an Int from a byte array with a given offset.

Return

Short.

Parameters

offset

The index to start from.

Throws

If the length of the byte array is not >= offset + 2.