@Override
  public void write(int b) {
    try {
      buffer.put((byte) (b & 0xff));
    } catch (BufferOverflowException e) {
      expand(1);
      buffer.put((byte) (b & 0xff));
    } catch (BufferUnderflowException e) {
      expand(1);
      buffer.put((byte) (b & 0xff));
    }
  }
write the low-order 8 bits of the given int
geode-core/src/main/java/org/apache/geode/internal/ByteBufferOutputStream.java