Initial
This commit is contained in:
37
wininet/HTTPData.hpp
Normal file
37
wininet/HTTPData.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user