#include <plfilesink.h>
Inheritance diagram for PLFileSink:
Public Member Functions | |
PLFileSink () | |
Create an uninitialized file sink. | |
virtual int | Open (const char *pszFName, int MaxFileSize) |
Open a file sink. Allocates MaxFileSize bytes. | |
virtual void | Close () |
Flushes the data and closes the file. |
If PL_FILE_MAPPING is defined (this is the case under windows), the data is written directly to the mapped file. If not, the class allocates a buffer large enough to hold a complete image file. But we don't know its size before it's actually encoded, so we have to be generous or "accidents will happen" TODO: Use mapped files for the *nix version as well.
Definition at line 33 of file plfilesink.h.