1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

AK: Allow specifying writability of a FixedMemoryStream

This commit is contained in:
kleines Filmröllchen 2023-09-19 12:01:42 +02:00 committed by Tim Schumacher
parent 644d9c784d
commit bbeabe929b
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ namespace AK {
/// using a single read/write head.
class FixedMemoryStream : public SeekableStream {
public:
explicit FixedMemoryStream(Bytes bytes);
explicit FixedMemoryStream(Bytes bytes, bool writing_enabled = true);
explicit FixedMemoryStream(ReadonlyBytes bytes);
virtual bool is_eof() const override;