public final byte read(boolean invert) throws IOException {
    if (start >= end) {
      throw new EOFException();
    }
    if (invert) {
      return (byte) (0xff ^ data[start++]);
    } else {
      return data[start++];
    }
  }
Read one byte from the byte buffer. Final method to help inlining.

@param invert
         whether we want to invert all the bits.
serde/src/java/org/apache/hadoop/hive/serde2/binarysortable/InputByteBuffer.java