1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

LibCrypto: Pass AK::Bytes by value

This commit is contained in:
Andreas Kling 2021-11-11 01:10:24 +01:00
parent 80d4e830a0
commit 68b5e6c565

View file

@ -26,7 +26,7 @@ public:
virtual void update(const u8*, size_t) = 0;
void update(const Bytes& buffer) { update(buffer.data(), buffer.size()); };
void update(Bytes buffer) { update(buffer.data(), buffer.size()); };
void update(ReadonlyBytes buffer) { update(buffer.data(), buffer.size()); };
void update(const ByteBuffer& buffer) { update(buffer.data(), buffer.size()); };
void update(StringView string) { update((const u8*)string.characters_without_null_termination(), string.length()); };