This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

37
wininet/HTTPData.hpp Normal file
View 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