mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
AK: Add nodiscard
attribute to Base64 functions
This commit is contained in:
parent
49042bffe9
commit
56cabf80de
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue