mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 00:09:44 +00:00
FileSystem: Use OutputMemoryStream instead of BufferStream.
This commit is contained in:
parent
c8ed882b8e
commit
206dcd84a6
Notes:
sideshowbarker
2024-07-19 02:38:18 +09:00
Author: https://github.com/asynts
Commit: 206dcd84a6
Pull-request: https://github.com/SerenityOS/serenity/pull/3496
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