lib/curl: use std::span

This commit is contained in:
Max Kellermann
2022-06-27 17:27:37 +02:00
committed by Max Kellermann
parent 062df65b1e
commit 1da09f5b1b
12 changed files with 32 additions and 33 deletions

View File

@@ -24,6 +24,7 @@
#include "event/Call.hxx"
#include "util/DeleteDisposer.hxx"
#include "util/ScopeExit.hxx"
#include "util/SpanCast.hxx"
#include "util/RuntimeError.hxx"
#include <upnptools.h>
@@ -64,9 +65,9 @@ UPnPDeviceDirectory::Downloader::OnHeaders(unsigned status,
}
void
UPnPDeviceDirectory::Downloader::OnData(ConstBuffer<void> _data)
UPnPDeviceDirectory::Downloader::OnData(std::span<const std::byte> src)
{
data.append((const char *)_data.data, _data.size);
data.append(ToStringView(src));
}
void