1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

Kernel: Avoid allocations when handling network packets

This commit is contained in:
Gunnar Beutner 2021-05-15 22:45:22 +02:00 committed by Andreas Kling
parent 53d0150827
commit 006f11f23d
5 changed files with 8 additions and 6 deletions

View file

@ -23,6 +23,8 @@ namespace Kernel {
class NetworkAdapter;
using NetworkByteBuffer = AK::Detail::ByteBuffer<1500>;
class NetworkAdapter : public RefCounted<NetworkAdapter> {
public:
template<typename Callback>