tag/Handler: pass std::span to OnPicture()

This commit is contained in:
Max Kellermann
2022-05-24 13:51:18 +02:00
parent 2e6f115bcc
commit 6d113de1f8
9 changed files with 41 additions and 39 deletions

View File

@@ -77,8 +77,9 @@ public:
}
void OnPicture(const char *mime_type,
ConstBuffer<void> buffer) noexcept override {
printf("picture mime='%s' size=%zu\n", mime_type, buffer.size);
std::span<const std::byte> buffer) noexcept override {
printf("picture mime='%s' size=%zu\n",
mime_type, buffer.size());
}
};