InternetRequestBuffer Class Reference

Self-resizing buffer for internet requests data. More...

#include <InternetRequest.h>

List of all members.

Public Member Functions

 InternetRequestBuffer ()
 Default constructor; Initializes variables.
 ~InternetRequestBuffer ()
 Deletes the buffer.
bool AddData (const char *pBuffer, unsigned int dwSize)
 Add data to the buffer, increasing the size if necessary.
const char * GetData (unsigned int &dwSize)
 Retrieves a pointer to the data, including the size.
void Clear ()
 Cleans the buffer (but doesn't resize it).

Protected Attributes

char * m_pData
 Pointer to the data.
unsigned int m_dwSize
 Size of data held in the buffer.
unsigned int m_dwRealSize
 Size of buffer (same or larger then m_dwSize).

Detailed Description

Self-resizing buffer for internet requests data.

Definition at line 40 of file InternetRequest.h.


Member Function Documentation

bool InternetRequestBuffer::AddData ( const char *  pBuffer,
unsigned int  dwSize 
)

Add data to the buffer, increasing the size if necessary.

Parameters:
pBuffer Pointer to the data to add to the buffer
dwSize Size of data to add
Returns:
true if added successfully, false if buffer is too large to be allocated

Definition at line 38 of file InternetRequest.cpp.

References m_dwRealSize, m_dwSize, m_pData, and REQUESTBUFFER_MINSIZE.

Referenced by InternetRequest::InnerDoRequest().

const char* InternetRequestBuffer::GetData ( unsigned int &  dwSize  )  [inline]

Retrieves a pointer to the data, including the size.

Parameters:
dwSize Set to hold the size of the data (in bytes) upon return
Returns:
Pointer to the data

Definition at line 71 of file InternetRequest.h.

References m_dwSize, and m_pData.

Referenced by LicenseInfoLoader::RequestLicenseType().


The documentation for this class was generated from the following files:

Generated on Mon Jun 18 12:40:44 2012 for CC PDF Converter by doxygen 1.6.1