mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
LibCore+Tests: Add SeekableStream::truncate()
This commit is contained in:
parent
d9fb1b8c2e
commit
4d5080388a
4 changed files with 27 additions and 0 deletions
|
@ -26,6 +26,8 @@ public:
|
|||
virtual bool is_open() const override { return true; }
|
||||
// FIXME: It doesn't make sense to close an memory stream. Therefore, we don't do anything here. Is that fine?
|
||||
virtual void close() override { }
|
||||
// FIXME: It doesn't make sense to truncate a memory stream. Therefore, we don't do anything here. Is that fine?
|
||||
virtual ErrorOr<void> truncate(off_t) override { return Error::from_errno(ENOTSUP); }
|
||||
|
||||
virtual ErrorOr<size_t> read(Bytes bytes) override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue