#include <pldatasink.h>
Inheritance diagram for PLDataSink:
Public Member Functions | |
void | Open (const char *pszName, PLBYTE *pData, size_t MaxDataSize) |
virtual void | Close () |
char * | GetName () |
PLBYTE * | GetBufferPtr () |
size_t | GetDataSize () |
size_t | GetMaxDataSize () |
size_t | WriteNBytes (size_t n, PLBYTE *pData) |
void | WriteByte (PLBYTE Data) |
void | Skip (size_t n) |
void | CheckEOF () |
Test to see if we didn't go past the "end of the file". | |
Protected Member Functions | |
PLDataSink () | |
virtual | ~PLDataSink () |
Protected Attributes | |
PLBYTE * | m_pStartData |
int | m_nCurPos |
Private Attributes | |
char * | m_pszName |
size_t | m_nMaxFileSize |
Friends | |
class | PLTIFFEncoder |
class | PLTIFFEncoderEx |
It defines methods to open, write to, close data sinks.
Restriction: actually writes to a memory buffer that needs to be foreseen large enough by user (descendant class)
Definition at line 25 of file pldatasink.h.
|
Definition at line 20 of file pldatasink.cpp. References NULL. |
|
Definition at line 31 of file pldatasink.cpp. |
|
Test to see if we didn't go past the "end of the file".
Definition at line 116 of file pldatasink.h. References PL_ERREND_OF_FILE. |
|
Reimplemented in PLFileSink, and PLMemSink. Definition at line 59 of file pldatasink.cpp. Referenced by PLMemSink::Close(), and PLFileSink::Close(). |
|
Definition at line 97 of file pldatasink.h. |
|
Definition at line 109 of file pldatasink.h. Referenced by PLFileSink::Close(). |
|
Definition at line 103 of file pldatasink.h. |
|
Definition at line 69 of file pldatasink.cpp. Referenced by PLPNGEncoder::DoEncode(). |
|
Definition at line 40 of file pldatasink.cpp. References PLASSERT, and PLBYTE. Referenced by PLMemSink::Open(), and PLFileSink::Open(). |
|
Definition at line 127 of file pldatasink.h. |
|
Definition at line 89 of file pldatasink.cpp. References PLBYTE. |
|
Definition at line 75 of file pldatasink.cpp. References PL_ERREND_OF_FILE, and PLBYTE. Referenced by EncodeData(), jpeg_mem_dest_empty_output_buffer(), and jpeg_mem_dest_term(). |
|
Definition at line 29 of file pldatasink.h. |
|
Definition at line 30 of file pldatasink.h. |
|
Definition at line 80 of file pldatasink.h. Referenced by PLTIFFEncoderEx::Associate(), and PLTIFFEncoder::DoEncode(). |
|
Definition at line 92 of file pldatasink.h. Referenced by PLTIFFEncoderEx::Associate(), and PLTIFFEncoder::DoEncode(). |
|
Definition at line 79 of file pldatasink.h. Referenced by PLTIFFEncoderEx::Associate(), and PLTIFFEncoder::DoEncode(). |
|
Definition at line 91 of file pldatasink.h. |