public static short toShort(byte[] bytes) {
    return toShort(bytes, 0, SIZEOF_SHORT);
  }
Converts a byte array to a short value
@param bytes byte array
@return the short value
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java