Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Private Attributes | List of all members
MemFormatTarget Class Reference
Inheritance diagram for MemFormatTarget:
XMLFormatTarget

Public Member Functions

 MemFormatTarget ()
 
virtual ~MemFormatTarget ()
 
virtual void writeChars (const XMLByte *const toWrite, const unsigned int count, XMLFormatter *const)
 
SINT32 dumpMem (UINT8 *buff, UINT32 *size)
 Copys the XML-chars into buff. More...
 
UINT8dumpMem (UINT32 *size, OUTPUT_FORMAT a_outputFormat)
 Returns a Copy of the XML-chars. More...
 

Private Attributes

CAQueuem_pQueue
 
UINT8m_Buff
 
UINT32 m_aktIndex
 

Constructor & Destructor Documentation

◆ MemFormatTarget()

MemFormatTarget::MemFormatTarget ( )

◆ ~MemFormatTarget()

virtual MemFormatTarget::~MemFormatTarget ( )
virtual

References m_Buff, and m_pQueue.

Member Function Documentation

◆ dumpMem() [1/2]

UINT8* MemFormatTarget::dumpMem ( UINT32 size,
OUTPUT_FORMAT  a_outputFormat 
)

Returns a Copy of the XML-chars.

Parameters
sizeon return contains the number of XML-Chars copied
a_outputFormatdefines an output format for the generated character array
Returns
a pointer to a newls allocated buff, which must be delete[] by the caller
NULL if an error occurs

References CAQueue::add(), E_SUCCESS, CAQueue::getSize(), m_aktIndex, m_Buff, m_pQueue, OF_NEWLINE, OF_NULL_TERMINATED, and CAQueue::peek().

◆ dumpMem() [2/2]

SINT32 MemFormatTarget::dumpMem ( UINT8 buff,
UINT32 size 
)

Copys the XML-chars into buff.

Parameters
buffbuffer in which to copy the XML-chars
sizecontains the size of buff, on return contains the number of XML-CHars copied
Returns
E_SUCCESS, if successful
E_SPACE, if buff is to small
E_UNKNOWN, if an error occurs

References CAQueue::add(), E_SPACE, E_SUCCESS, E_UNKNOWN, m_aktIndex, m_Buff, m_pQueue, and CAQueue::peek().

Referenced by DOM_Output::dumpToMem(), and DOM_Output::makeCanonical().

◆ writeChars()

virtual void MemFormatTarget::writeChars ( const XMLByte *const  toWrite,
const unsigned int  count,
XMLFormatter * const   
)
virtual

Member Data Documentation

◆ m_aktIndex

UINT32 MemFormatTarget::m_aktIndex
private

◆ m_Buff

UINT8* MemFormatTarget::m_Buff
private

◆ m_pQueue

CAQueue* MemFormatTarget::m_pQueue
private