public static byte decodeInt8(PositionedByteRange src) {
    final byte header = src.get();
    assert header == FIXED_INT8 || header == DESCENDING.apply(FIXED_INT8);
    Order ord = header == FIXED_INT8 ? ASCENDING : DESCENDING;
    return (byte) ((ord.apply(src.get()) ^ 0x80) & 0xff);
  }
Decode an {@code int8} value.
@see #encodeInt8(PositionedByteRange, byte, Order)
hbase-common/src/main/java/org/apache/hadoop/hbase/util/OrderedBytes.java