1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

AK: Add a forgiving_base64_decode helper

According to the specification at
https://infra.spec.whatwg.org/#forgiving-base64
This commit is contained in:
Arda Cinar 2022-12-28 12:20:43 +03:00 committed by Andreas Kling
parent 50c6d133a9
commit bbaf86fb46
2 changed files with 100 additions and 0 deletions

View file

@ -19,6 +19,8 @@ namespace AK {
[[nodiscard]] ErrorOr<ByteBuffer> decode_base64(StringView);
[[nodiscard]] ErrorOr<ByteBuffer> decode_forgiving_base64(StringView);
[[nodiscard]] ErrorOr<String> encode_base64(ReadonlyBytes);
}