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:
parent
c8ed882b8e
commit
206dcd84a6
3 changed files with 28 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue