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

FileSystem: Use OutputMemoryStream instead of BufferStream.

This commit is contained in:
asynts 2020-09-15 12:24:14 +02:00 committed by Andreas Kling
parent c8ed882b8e
commit 206dcd84a6
3 changed files with 28 additions and 16 deletions

View file

@ -80,11 +80,20 @@ public:
{
return write(src, 0, len);
}
[[nodiscard]] bool write(ReadonlyBytes bytes)
{
return write(bytes.data(), bytes.size());
}
[[nodiscard]] bool read(void* dest, size_t offset, size_t len) const;
[[nodiscard]] bool read(void* dest, size_t len) const
{
return read(dest, 0, len);
}
[[nodiscard]] bool read(Bytes bytes) const
{
return read(bytes.data(), bytes.size());
}
[[nodiscard]] bool memset(int value, size_t offset, size_t len);
[[nodiscard]] bool memset(int value, size_t len)