1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

Kernel: Use AK::Span a bunch in the network adapter code

This commit is contained in:
Andreas Kling 2020-07-28 20:19:22 +02:00
parent fffc5896d8
commit f5ac4da993
12 changed files with 47 additions and 46 deletions

View file

@ -47,10 +47,10 @@ LoopbackAdapter::~LoopbackAdapter()
{
}
void LoopbackAdapter::send_raw(const u8* data, size_t size)
void LoopbackAdapter::send_raw(ReadonlyBytes payload)
{
dbg() << "LoopbackAdapter: Sending " << size << " byte(s) to myself.";
did_receive(data, size);
dbg() << "LoopbackAdapter: Sending " << payload.size() << " byte(s) to myself.";
did_receive(payload);
}
}