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:
parent
80d4e830a0
commit
68b5e6c565
1 changed files with 1 additions and 1 deletions
|
@ -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()); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue