mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
AK: Add the Input
word to input-only buffered streams
This concerns both `BufferedSeekable` and `BufferedFile`.
This commit is contained in:
parent
48b000a36c
commit
8c34959b53
50 changed files with 101 additions and 102 deletions
|
@ -32,7 +32,7 @@ static ErrorOr<void> handle_attached_debugger()
|
|||
// "nopass". See https://sourceware.org/bugzilla/show_bug.cgi?id=9425
|
||||
// for details.
|
||||
auto unbuffered_status_file = TRY(Core::File::open("/proc/self/status"sv, Core::File::OpenMode::Read));
|
||||
auto status_file = TRY(Core::BufferedFile::create(move(unbuffered_status_file)));
|
||||
auto status_file = TRY(Core::InputBufferedFile::create(move(unbuffered_status_file)));
|
||||
auto buffer = TRY(ByteBuffer::create_uninitialized(4096));
|
||||
while (TRY(status_file->can_read_line())) {
|
||||
auto line = TRY(status_file->read_line(buffer));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue