HTTP: Replace ProgressBarMode with a new RequestFlags enum

This commit is contained in:
Henrik Rydgård committed 2025-01-23 12:09:56 +01:00
1 parent 5c0553031e
commit eb719c43e8
14 files changed
+53 -56

No files matched your search

+1 -7
View File
@@ -15,19 +15,13 @@ char *Buffer::Append(size_t length) {
}
}
void Buffer::Append(const std::string &str) {
void Buffer::Append(std::string_view str) {
char *ptr = Append(str.size());
if (ptr) {
memcpy(ptr, str.data(), str.size());
}
}
void Buffer::Append(const char *str) {
size_t len = strlen(str);
char *dest = Append(len);
memcpy(dest, str, len);
}
void Buffer::Append(const Buffer &other) {
size_t len = other.size();
if (len > 0) {