mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:07:35 +00:00
AK: Make encode_base64 take a ByteBuffer and return a String
That makes the interface symmetric with decode_base64 and it's what all current callers want (except for one, which is buggy).
This commit is contained in:
parent
9e32ad6c99
commit
5ba8aba197
5 changed files with 15 additions and 13 deletions
|
@ -75,6 +75,6 @@ int main(int argc, char** argv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
auto encoded = encode_base64(StringView(buffer));
|
||||
printf("%s\n", String::copy(encoded).characters());
|
||||
auto encoded = encode_base64(buffer);
|
||||
printf("%s\n", encoded.characters());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue