private void incCount(int value) {
    if (written + value < 0) {
      written = Integer.MAX_VALUE;
    } else {
      written += value;
    }
  }
Writes bytes from a DataInput directly into the buffer.
ql/src/java/org/apache/hadoop/hive/ql/io/NonSyncDataOutputBuffer.java