AK: Add nodiscard attribute to Base64 functions

This commit is contained in:
Lenny Maiorani 2022-06-26 10:20:09 -06:00 committed by Brian Gianforcaro
parent 49042bffe9
commit 56cabf80de
Notes: sideshowbarker 2024-07-17 09:45:31 +09:00

View File

@ -13,14 +13,13 @@
namespace AK {
size_t calculate_base64_decoded_length(StringView);
[[nodiscard]] size_t calculate_base64_decoded_length(StringView);
size_t calculate_base64_encoded_length(ReadonlyBytes);
[[nodiscard]] size_t calculate_base64_encoded_length(ReadonlyBytes);
ErrorOr<ByteBuffer> decode_base64(StringView);
String encode_base64(ReadonlyBytes);
[[nodiscard]] ErrorOr<ByteBuffer> decode_base64(StringView);
[[nodiscard]] String encode_base64(ReadonlyBytes);
}
using AK::decode_base64;