mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
Refactor: Use ReadonlyBytes instead of const ReadonlyBytes&.
This commit is contained in:
parent
fff581cd72
commit
fc276946fb
Notes:
sideshowbarker
2024-07-19 03:34:52 +09:00
Author: https://github.com/asynts
Commit: fc276946fb
Pull-request: https://github.com/SerenityOS/serenity/pull/3166
Reviewed-by: https://github.com/nico
4 changed files with 8 additions and 8 deletions
|
@ -396,10 +396,10 @@ void AESCipher::decrypt_block(const AESCipherBlock& in, AESCipherBlock& out)
|
|||
// clang-format on
|
||||
}
|
||||
|
||||
void AESCipherBlock::overwrite(const ReadonlyBytes& span)
|
||||
void AESCipherBlock::overwrite(ReadonlyBytes bytes)
|
||||
{
|
||||
auto data = span.data();
|
||||
auto length = span.size();
|
||||
auto data = bytes.data();
|
||||
auto length = bytes.size();
|
||||
|
||||
ASSERT(length <= m_data.size());
|
||||
m_data.overwrite(0, data, length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue