@Override
  public void write(int b) {
    if (ignoreWrites) {
      return;
    }
    checkIfWritable();
    ensureCapacity(1);
    buffer.put((byte) (b & 0xff));
  }
write the low-order 8 bits of the given int
geode-serialization/src/main/java/org/apache/geode/internal/serialization/BufferDataOutputStream.java