mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Refactor: Use ReadonlyBytes instead of const ReadonlyBytes&.
This commit is contained in:
parent
fff581cd72
commit
fc276946fb
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