1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

Kernel: Add KBuffer::bytes() and use it

(Instead of hand-wrapping { data(), size() } in a bunch of places.)
This commit is contained in:
Andreas Kling 2021-09-08 18:29:52 +02:00
parent bee2de4b31
commit 524ef5e475
7 changed files with 9 additions and 7 deletions

View file

@ -48,7 +48,7 @@ public:
{
if (!m_buffer)
return {};
return ReadonlyBytes { m_buffer->data(), m_buffer->size() };
return m_buffer->bytes();
}
private: