mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
AK: Add nodiscard
attribute to Base64 functions
This commit is contained in:
parent
49042bffe9
commit
56cabf80de
Notes:
sideshowbarker
2024-07-17 09:45:31 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/56cabf80de Pull-request: https://github.com/SerenityOS/serenity/pull/14395 Reviewed-by: https://github.com/linusg
@ -13,14 +13,13 @@
|
|||||||
|
|
||||||
namespace AK {
|
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);
|
[[nodiscard]] ErrorOr<ByteBuffer> decode_base64(StringView);
|
||||||
|
|
||||||
String encode_base64(ReadonlyBytes);
|
|
||||||
|
|
||||||
|
[[nodiscard]] String encode_base64(ReadonlyBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
using AK::decode_base64;
|
using AK::decode_base64;
|
||||||
|
Loading…
Reference in New Issue
Block a user