lib/crypto/Base64: use std::span

This commit is contained in:
Max Kellermann
2022-05-20 11:18:54 +02:00
parent ef54b7d9de
commit 1260a0147a
3 changed files with 10 additions and 15 deletions

View File

@@ -22,7 +22,6 @@
#include "tag/Id3Picture.hxx"
#include "tag/Handler.hxx"
#include "util/StringView.hxx"
#include "util/WritableBuffer.hxx"
#include "config.h"
#include <memory>
@@ -36,7 +35,7 @@ ScanVorbisPicture(StringView value, TagHandler &handler) noexcept
return;
size_t debase64_size = CalculateBase64OutputSize(value.size);
auto debase64_buffer = std::make_unique<uint8_t[]>(debase64_size);
auto debase64_buffer = std::make_unique<std::byte[]>(debase64_size);
try {
debase64_size =