mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
AK: Override read_until_filled
in FixedMemoryStream
This specialized method allow significant performance improvements for the user.
This commit is contained in:
parent
d00a563462
commit
102fdf6305
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/LucasChollet
Commit: 102fdf6305
Pull-request: https://github.com/SerenityOS/serenity/pull/19283
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/kleinesfilmroellchen
Reviewed-by: https://github.com/nico ✅
Reviewed-by: https://github.com/timschumi
2 changed files with 12 additions and 0 deletions
|
@ -24,6 +24,7 @@ public:
|
|||
virtual void close() override;
|
||||
virtual ErrorOr<void> truncate(size_t) override;
|
||||
virtual ErrorOr<Bytes> read_some(Bytes bytes) override;
|
||||
virtual ErrorOr<void> read_until_filled(Bytes bytes) override;
|
||||
|
||||
virtual ErrorOr<size_t> seek(i64 offset, SeekMode seek_mode = SeekMode::SetPosition) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue