docs: def __flush_buffer(self):
          """Flush the buffer contents out to a chunk.
          """
          self.__flush_data(self._buffer.getvalue())
          self._buffer.close()
          self._buffer = StringIO()