#include <PdfOutputStream.h>
Inheritance diagram for PoDoFo::PdfMemoryOutputStream:
Public Member Functions | |
PdfMemoryOutputStream (long lInitial=INITIAL_SIZE) | |
PdfMemoryOutputStream (char *pBuffer, long lLen) | |
virtual long | Write (const char *pBuffer, long lLen) |
virtual void | Close () |
unsigned long | GetLength () const |
char * | TakeBuffer () |
DS: TODO: remove in favour of PdfBufferOutputStream.
PoDoFo::PdfMemoryOutputStream::PdfMemoryOutputStream | ( | long | lInitial = INITIAL_SIZE |
) |
Construct a new PdfMemoryOutputStream
lInitial | initial size of the buffer |
PoDoFo::PdfMemoryOutputStream::PdfMemoryOutputStream | ( | char * | pBuffer, | |
long | lLen | |||
) |
Construct a new PdfMemoryOutputStream that writes to an existing buffer
pBuffer | handle to the buffer | |
lLen | length of the buffer |
virtual void PoDoFo::PdfMemoryOutputStream::Close | ( | ) | [inline, virtual] |
Close the PdfOutputStream. This method may throw exceptions and has to be called before the descructor to end writing.
No more data may be written to the output device after calling close.
Implements PoDoFo::PdfOutputStream.
unsigned long PoDoFo::PdfMemoryOutputStream::GetLength | ( | ) | const [inline] |
char * PoDoFo::PdfMemoryOutputStream::TakeBuffer | ( | ) | [inline] |
The caller has to free the returned malloc'ed buffer!
long PoDoFo::PdfMemoryOutputStream::Write | ( | const char * | pBuffer, | |
long | lLen | |||
) | [virtual] |
Write data to the output stream
pBuffer | the data is read from this buffer | |
lLen | the size of the buffer |
Implements PoDoFo::PdfOutputStream.