public static short toShort(ByteBuffer buffer, int offset) {
    return ConverterHolder.BEST_CONVERTER.toShort(buffer, offset);
  }
Reads a short value at the given buffer's offset.
@param buffer input byte buffer to read
@param offset input offset where short is
@return short value at offset
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ByteBufferUtils.java