mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
@@ -333,7 +333,7 @@ Plan9FS::Message::Message(Plan9FS& fs, Type type)
|
||||
}
|
||||
|
||||
Plan9FS::Message::Message(NonnullOwnPtr<KBuffer>&& buffer)
|
||||
: m_built { move(buffer), Decoder({ buffer->data(), buffer->size() }) }
|
||||
: m_built { move(buffer), Decoder({ buffer->bytes() }) }
|
||||
, m_have_been_built(true)
|
||||
{
|
||||
u32 size;
|
||||
|
||||
Reference in New Issue
Block a user