Function libCZI::CreateOutputStreamForFileUtf8

Function libCZI::CreateOutputStreamForFileUtf8#

Function Documentation#

std::shared_ptr<IOutputStream> libCZI::CreateOutputStreamForFileUtf8(const char *szFilename, bool overwriteExisting)#

Creates an output-stream-object for the specified filename. A stock-implementation of a stream-object (for writing a file from disk) is provided here. For a more specialized and tuned version, libCZI-users should consider implementing the interface “IOutputStream” in their own code.

Parameters:
  • szFilename – Filename of the file (in UTF8 encoding).

  • overwriteExisting – True if an existing file should be overwritten, false otherwise.

Returns:

The new output-stream object.