38 lines
599 B
C++
38 lines
599 B
C++
#ifndef _WININET_HTTPDATA_HPP_
|
|
#define _WININET_HTTPDATA_HPP_
|
|
#ifndef _COMMON_ARRAY_HPP_
|
|
#include <common/array.hpp>
|
|
#endif
|
|
|
|
class HTTPData : public Array<BYTE>
|
|
{
|
|
public:
|
|
HTTPData();
|
|
virtual ~HTTPData();
|
|
HTTPData &operator=(const String &string);
|
|
String toString(void)const;
|
|
private:
|
|
};
|
|
|
|
inline
|
|
HTTPData::HTTPData()
|
|
{
|
|
}
|
|
|
|
inline
|
|
HTTPData::~HTTPData()
|
|
{
|
|
}
|
|
|
|
inline
|
|
HTTPData &HTTPData::operator=(const String &string)
|
|
{
|
|
int strLength;
|
|
|
|
if(string.isNull()||0==(strLength=string.length()))return *this;
|
|
size(strLength);
|
|
::memcpy(&operator[](0),string.str(),strLength);
|
|
return *this;
|
|
}
|
|
#endif
|