MCPcopy Create free account
hub / github.com/Huntereb/Awoo-Installer / ParseHTMLData

Method ParseHTMLData

source/util/network_util.cpp:164–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 size_t HTTPDownload::ParseHTMLData(char* bytes, size_t size, size_t numItems, void* userData)
165 {
166 auto streamFunc = *reinterpret_cast<std::function<size_t (u8* bytes, size_t size)>*>(userData);
167 size_t numBytes = size * numItems;
168
169 if (streamFunc != nullptr)
170 return streamFunc((u8*)bytes, numBytes);
171
172 return numBytes;
173 }
174
175 void HTTPDownload::BufferDataRange(void* buffer, size_t offset, size_t size, std::function<void (size_t sizeRead)> progressFunc)
176 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected