ladybird/Userland/Services/InspectorServer
Sam Atkins 3b1e063d30 LibCore+Everywhere: Make Core::Stream::read() return Bytes
A mistake I've repeatedly made is along these lines:
```c++
auto nread = TRY(source_file->read(buffer));
TRY(destination_file->write(buffer));
```

It's a little clunky to have to create a Bytes or StringView from the
buffer's data pointer and the nread, and easy to forget and just use
the buffer. So, this patch changes the read() function to return a
Bytes of the data that were just read.

The other read_foo() methods will be modified in the same way in
subsequent commits.

Fixes #13687
2022-04-16 13:27:51 -04:00
..
CMakeLists.txt Userland: Rename IPC ClientConnection => ConnectionFromClient 2022-02-25 22:35:12 +01:00
ConnectionFromClient.cpp Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
ConnectionFromClient.h Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
Forward.h Userland: Rename IPC ClientConnection => ConnectionFromClient 2022-02-25 22:35:12 +01:00
InspectableProcess.cpp LibCore+Everywhere: Make Core::Stream::read() return Bytes 2022-04-16 13:27:51 -04:00
InspectableProcess.h Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
InspectorClient.ipc Userland: Remove dummy IPC methods 2021-06-24 00:38:58 +02:00
InspectorServer.ipc InspectorServer: Add is_inspectable IPC 2021-06-02 11:19:04 +02:00
main.cpp Userland: Rename IPC ClientConnection => ConnectionFromClient 2022-02-25 22:35:12 +01:00