docs: @Override
      public void write(int data) throws IOException {
          ensureBufferAvailable();
          buffer.backingBuffer().put((byte) data);
          if (!buffer.hasRemaining()) {
              flush(false);
          }
      }