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:
parent
50c6d133a9
commit
bbaf86fb46
2 changed files with 100 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue