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