mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibCore+LibIPC: Make Core::Stream read_without_waiting() return Bytes
For the reasoning, see the earlier commit about Core::Stream::read().
This commit is contained in:
parent
d564cf1e89
commit
fe5fdb200b
Notes:
sideshowbarker
2024-07-17 11:46:24 +09:00
Author: https://github.com/AtkinsSJ
Commit: fe5fdb200b
Pull-request: https://github.com/SerenityOS/serenity/pull/13694
Reviewed-by: https://github.com/trflynn89
3 changed files with 9 additions and 9 deletions
|
@ -552,9 +552,9 @@ ErrorOr<pid_t> LocalSocket::peer_pid() const
|
|||
#endif
|
||||
}
|
||||
|
||||
ErrorOr<size_t> LocalSocket::read_without_waiting(Bytes buffer)
|
||||
ErrorOr<Bytes> LocalSocket::read_without_waiting(Bytes buffer)
|
||||
{
|
||||
return TRY(m_helper.read(buffer, MSG_DONTWAIT)).size();
|
||||
return m_helper.read(buffer, MSG_DONTWAIT);
|
||||
}
|
||||
|
||||
ErrorOr<int> LocalSocket::release_fd()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue