mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
Kernel: Make File::write() and File::read() return KResultOr<size_t>
Instead of returning a ssize_t where negative values mean error, we now return KResultOr<size_t> and use the error state to report errors exclusively.
This commit is contained in:
parent
58feebeed2
commit
7a3ab6c517
Notes:
sideshowbarker
2024-07-19 04:18:56 +09:00
Author: https://github.com/awesomekling
Commit: 7a3ab6c517
58 changed files with 223 additions and 229 deletions
|
@ -36,8 +36,8 @@ class DoubleBuffer {
|
|||
public:
|
||||
explicit DoubleBuffer(size_t capacity = 65536);
|
||||
|
||||
ssize_t write(const u8*, ssize_t);
|
||||
ssize_t read(u8*, ssize_t);
|
||||
size_t write(const u8*, size_t);
|
||||
size_t read(u8*, size_t);
|
||||
|
||||
bool is_empty() const { return m_empty; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue