1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +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

@ -64,8 +64,8 @@ public:
virtual ByteBuffer get() const = 0;
virtual const ByteBuffer& data() const = 0;
virtual void overwrite(const ReadonlyBytes&) = 0;
virtual void overwrite(const ByteBuffer& buffer) { overwrite(buffer.bytes()); }
virtual void overwrite(ReadonlyBytes) = 0;
virtual void overwrite(const ByteBuffer& buffer) { overwrite(buffer); }
virtual void overwrite(const u8* data, size_t size) { overwrite({ data, size }); }
virtual void apply_initialization_vector(const u8* ivec) = 0;