Self-resizing buffer for internet requests data. More...
#include <InternetRequest.h>
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). |
Self-resizing buffer for internet requests data.
Definition at line 40 of file InternetRequest.h.
bool InternetRequestBuffer::AddData | ( | const char * | pBuffer, | |
unsigned int | dwSize | |||
) |
Add data to the buffer, increasing the size if necessary.
pBuffer | Pointer to the data to add to the buffer | |
dwSize | Size of data to add |
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.
dwSize | Set to hold the size of the data (in bytes) upon return |
Definition at line 71 of file InternetRequest.h.
References m_dwSize, and m_pData.
Referenced by LicenseInfoLoader::RequestLicenseType().