#include <Buffer.h>
Public Member Functions | |
CBuffer (DWORD *pLimit=NULL) | |
virtual | ~CBuffer () |
void | Add (const void *pData, DWORD nLength) |
void | Insert (DWORD nOffset, const void *pData, DWORD nLength) |
void | Remove (DWORD nLength) |
void | Clear () |
void | Print (LPCSTR pszText) |
void | Print (LPCWSTR pszText, UINT nCodePage=CP_ACP) |
DWORD | AddBuffer (CBuffer *pBuffer, DWORD nLength=0xFFFFFFFF) |
void | AddReversed (const void *pData, DWORD nLength) |
void | Prefix (LPCSTR pszText) |
void | EnsureBuffer (DWORD nLength) |
CString | ReadString (DWORD nBytes, UINT nCodePage=CP_ACP) |
BOOL | ReadLine (CString &strLine, BOOL bPeek=FALSE, UINT nCodePage=CP_ACP) |
BOOL | StartsWith (LPCSTR pszString, BOOL bRemove=FALSE) |
DWORD | Receive (SOCKET hSocket) |
DWORD | Send (SOCKET hSocket) |
BOOL | Deflate (BOOL bIfSmaller=FALSE) |
BOOL | Inflate (DWORD nSuggest=0) |
BOOL | Ungzip () |
void | WriteDIME (DWORD nFlags, LPCSTR pszID, LPCSTR pszType, LPCVOID pBody, DWORD nBody) |
BOOL | ReadDIME (DWORD *pnFlags, CString *psID, CString *psType, DWORD *pnBody) |
Static Public Member Functions | |
static void | ReverseBuffer (const void *pInput, void *pOutput, DWORD nLength) |
Public Attributes | |
CBuffer * | m_pNext |
BYTE * | m_pBuffer |
DWORD | m_nLength |
DWORD | m_nBuffer |
|
Definition at line 52 of file Buffer.cpp. References m_nBuffer, m_nLength, m_pBuffer, m_pNext, and NULL. |
|
Definition at line 63 of file Buffer.cpp. References m_pBuffer. |
|
|
Definition at line 229 of file Buffer.cpp. References Add(), m_nLength, m_pBuffer, and Remove(). Referenced by CRemote::OnHeadersComplete(), CIEProtocol::OnRequestRAZACOL(), CHostBrowser::ReadContent(), CUploadTransferHTTP::RequestHostBrowse(), and CDatagramIn::ToG2Packet(). |
|
Definition at line 244 of file Buffer.cpp. References EnsureBuffer(), m_nLength, m_pBuffer, and ReverseBuffer(). Referenced by CUploadTransferHTTP::OnWrite(). |
|
|
Definition at line 473 of file Buffer.cpp. References Add(), CZLib::Compress(), m_nLength, and m_pBuffer. Referenced by CDatagramOut::Create(), and CUploadTransferHTTP::RequestHostBrowse(). |
|
|
Definition at line 501 of file Buffer.cpp. References Add(), CZLib::Decompress(), m_nLength, m_pBuffer, and NULL. Referenced by CHttpRequest::InflateResponse(), and CQueryHashTable::OnPatch(). |
|
Definition at line 106 of file Buffer.cpp. References BLOCK_MASK, BLOCK_SIZE, m_nBuffer, m_nLength, and m_pBuffer. Referenced by CDatagramOut::Create(), and Prefix(). |
|
Definition at line 258 of file Buffer.cpp. References Insert(), and NULL. Referenced by CUploadTransferHTTP::OnHeadersComplete(). |
|
Definition at line 189 of file Buffer.cpp. References EnsureBuffer(), m_nLength, m_pBuffer, and NULL. |
|
|
Definition at line 738 of file Buffer.cpp. References m_nLength, m_pBuffer, NULL, and Remove(). Referenced by CDownloadTransferHTTP::ReadTiger(). |
|
|
Definition at line 293 of file Buffer.cpp. References m_nLength, m_pBuffer, and NULL. Referenced by CHttpRequest::GetResponseString(), CCollectionFile::LoadManifest(), CLibraryBuilderInternals::ReadJPEG(), CDownloadTransferHTTP::ReadMetadata(), and CDownloadTransferHTTP::ReadTiger(). |
|
Definition at line 398 of file Buffer.cpp. References Add(), CStatistics::Current, Statistics, and TEMP_BUFFER. |
|
|
Definition at line 647 of file Buffer.cpp. References SWAP_LONG. Referenced by AddReversed(), and CDownloadTransferHTTP::ReadContent(). |
|
Definition at line 437 of file Buffer.cpp. References CStatistics::Current, m_nLength, m_pBuffer, Remove(), and Statistics. |
|
Definition at line 373 of file Buffer.cpp. |
|
Definition at line 517 of file Buffer.cpp. References Add(), Clear(), EnsureBuffer(), inflate(), inflateEnd(), inflateInit2, m_nBuffer, m_nLength, m_pBuffer, MAX_WBITS, Remove(), Z_FINISH, Z_OK, and Z_STREAM_END. Referenced by CHttpRequest::InflateResponse(). |
|
Definition at line 693 of file Buffer.cpp. References Add(), EnsureBuffer(), m_nLength, m_pBuffer, NULL, and Print(). Referenced by CUploadTransferHTTP::RequestTigerTreeDIME(). |
|
Definition at line 44 of file Buffer.h. Referenced by Add(), CBuffer(), EnsureBuffer(), Insert(), CNeighbour::OnRead(), CNeighbour::OnWrite(), CHostBrowser::ReadContent(), and Ungzip(). |
|
|
|
Definition at line 41 of file Buffer.h. Referenced by CBuffer(), CDatagrams::Listen(), CDatagrams::OnReceiveSGP(), CDatagrams::Remove(), and CDatagrams::Send(). |