XMLWriter::flush

xmlwriter_flush

Flush current buffer

&reftitle.description;

&style.oop;

public ``string``int```XMLWriter::flush` `bool` `empty`&true;

&style.procedural;

``string``int```xmlwriter_flush` `XMLWriter` `writer` `bool` `empty`&true;

Flushes the current buffer.

&reftitle.parameters;

&xmlwriter.xmlwriter.description;

`empty`

- Whether to empty the buffer or not. Default is &true;.

&reftitle.returnvalues;

If you opened the writer in memory, this function returns the generated XML buffer, Else, if using URI, this function will write the buffer and return the number of written bytes.

&reftitle.changelog;

&Version; | &Description;
&xmlwriter.changelog.writer-param;
8.0.0 | This function can no longer return &false;.