mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb/Streams: Fully implement BYOB operations for ReadableStream
As far as I can tell there is no change in WPT from this implementation. But these steps should be more effecient than using the non BYOB steps as we can make direct use of the provided buffer to the byte stream.
This commit is contained in:
parent
3d3c1d8bf7
commit
a28961a92d
Notes:
github-actions[bot]
2024-12-27 14:57:43 +00:00
Author: https://github.com/shannonbooth
Commit: a28961a92d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3014
Reviewed-by: https://github.com/kennethmyhra ✅
2 changed files with 54 additions and 17 deletions
|
@ -111,6 +111,8 @@ public:
|
|||
void set_up_with_byte_reading_support(GC::Ptr<PullAlgorithm> = {}, GC::Ptr<CancelAlgorithm> = {}, double high_water_mark = 0);
|
||||
GC::Ref<WebIDL::Promise> piped_through(GC::Ref<WritableStream>, bool prevent_close = false, bool prevent_abort = false, bool prevent_cancel = false, JS::Value signal = JS::js_undefined());
|
||||
|
||||
GC::Ptr<WebIDL::ArrayBufferView> current_byob_request_view();
|
||||
|
||||
private:
|
||||
explicit ReadableStream(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue