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
commit fc276946fb
Notes: sideshowbarker 2024-07-19 03:34:52 +09:00
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);