1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

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.
This commit is contained in:
Lucas CHOLLET 2023-05-03 18:53:18 -04:00 committed by Andreas Kling
parent 8c34959b53
commit af6dc267d3
2 changed files with 76 additions and 0 deletions

View file

@ -106,5 +106,6 @@ private:
AK_ENUM_BITWISE_OPERATORS(File::OpenMode)
using InputBufferedFile = InputBufferedSeekable<File>;
using OutputBufferedFile = OutputBufferedStream<File>;
}