diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-05-03 18:53:18 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-09 11:18:46 +0200 |
commit | af6dc267d3b5bbedd739e30b60a48761665b5ec0 (patch) | |
tree | 622dbe33220aa23bfea5aca157056365b18d208f /Userland | |
parent | 8c34959b53b2b72122fe6d2718d5dc060ff56875 (diff) | |
download | serenity-af6dc267d3b5bbedd739e30b60a48761665b5ec0.zip |
AK: Add `OutputBufferedStream`
This class, in a similar fashion to what has been done with
`InputBufferedStream`, postpones write to the stream until an internal
buffer is full.
This patch also adds the `OutputBufferedFile` alias.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibCore/File.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/File.h b/Userland/Libraries/LibCore/File.h index 7a6728b9af..303730b103 100644 --- a/Userland/Libraries/LibCore/File.h +++ b/Userland/Libraries/LibCore/File.h @@ -106,5 +106,6 @@ private: AK_ENUM_BITWISE_OPERATORS(File::OpenMode) using InputBufferedFile = InputBufferedSeekable<File>; +using OutputBufferedFile = OutputBufferedStream<File>; } |