public static short toShort(Object ref, long offset) {
    if (LITTLE_ENDIAN) {
      return Short.reverseBytes(HBasePlatformDependent.getShort(ref, offset));
    }
    return HBasePlatformDependent.getShort(ref, offset);
  }
Reads a short value at the given Object's offset considering it was written in big-endian
format.
@return short value at offset
hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java