1
Fork 0
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:
asynts 2020-08-15 18:47:25 +02:00 committed by Andreas Kling
parent fff581cd72
commit fc276946fb
4 changed files with 8 additions and 8 deletions

View file

@ -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);