ladybird/Libraries/LibIPC
Jelle Raaijmakers 0b1206cf54 LibIPC: Do not allocate for unprocessed bytes
While we're processing received messages, we can end up with unprocessed
bytes after the last message. Instead of copying the data into a new
ByteBuffer, just move the bytes inside the existing buffer and resize
it.

This does mean that as long as there are unprocessed bytes after reading
incoming messages, the buffer does not shrink. But as soon as there's
nothing left, we clear this buffer again.
2026-03-04 17:15:21 -05:00
..
AutoCloseFileDescriptor.cpp Everywhere: Remove LibCore/System.h includes from header files 2025-12-04 15:40:46 +00:00
AutoCloseFileDescriptor.h Everywhere: Remove LibCore/System.h includes from header files 2025-12-04 15:40:46 +00:00
CMakeLists.txt Everywhere: Remove LibCore/System.h includes from header files 2025-12-04 15:40:46 +00:00
Concepts.h LibIPC: Add a generic encoder for spans 2025-03-09 11:14:20 -04:00
Connection.cpp LibIPC: Take MessageBuffer by lvalue reference in post_message() 2026-02-28 14:10:14 +01:00
Connection.h LibIPC: Take MessageBuffer by lvalue reference in post_message() 2026-02-28 14:10:14 +01:00
ConnectionFromClient.h LibIPC: Simplify IPC read hook 2025-10-21 09:31:22 +02:00
ConnectionToServer.h Everywhere: Make TransportSocket non-movable 2025-04-09 15:27:52 +02:00
Decoder.cpp LibIPC: Remove unused header in Decoder 2026-02-23 12:15:23 +01:00
Decoder.h LibCore: Remove forward declaration of non-existent type 2026-02-23 12:15:23 +01:00
Encoder.cpp LibIPC: Remove unused header in Encoder 2026-02-23 12:15:23 +01:00
Encoder.h LibCore: Remove forward declaration of non-existent type 2026-02-23 12:15:23 +01:00
File.cpp LibIPC: Use try_dequeue() when decoding IPC::File 2026-01-22 17:38:15 +01:00
File.h Everywhere: Remove LibCore/System.h includes from header files 2025-12-04 15:40:46 +00:00
FileWindows.cpp LibCore/LibIPC/Meta: Stop using deprecated Winsock functions 2026-02-02 10:35:11 +01:00
Forward.h LibIPC: Add some type aliases and MessageBuffer helpers 2025-07-18 10:09:02 -04:00
HandleType.h LibIPC: Port to Windows 2025-02-12 22:31:43 -07:00
Limits.h LibIPC: Move IPC message limits to a shared Limits.h header 2026-01-22 17:38:15 +01:00
Message.cpp LibIPC: Remove unused header in Message 2026-02-23 12:15:23 +01:00
Message.h LibIPC: Add some type aliases and MessageBuffer helpers 2025-07-18 10:09:02 -04:00
MessageWindows.cpp LibCore/LibIPC/Meta: Stop using deprecated Winsock functions 2026-02-02 10:35:11 +01:00
MultiServer.h Everywhere: Make TransportSocket non-movable 2025-04-09 15:27:52 +02:00
SingleServer.h LibIPC: Allow passing arguments to system server connections 2026-02-15 15:25:30 -05:00
Stub.h Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
Transport.h LibIPC: Port to Windows 2025-02-12 22:31:43 -07:00
TransportSocket.cpp LibIPC: Do not allocate for unprocessed bytes 2026-03-04 17:15:21 -05:00
TransportSocket.h LibIPC: Remove unused header in TransportSocket 2026-02-23 12:15:23 +01:00
TransportSocketWindows.cpp LibCore/LibIPC/Meta: Stop using deprecated Winsock functions 2026-02-02 10:35:11 +01:00
TransportSocketWindows.h Revert "LibIPC: Move message decoding from main thread to I/O thread" 2026-01-25 12:19:53 +01:00