FileSystem: Use OutputMemoryStream instead of BufferStream.

This commit is contained in:
asynts 2020-09-15 12:24:14 +02:00 committed by Andreas Kling
commit 206dcd84a6
Notes: sideshowbarker 2024-07-19 02:38:18 +09:00
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)