LibWeb: Implement ReadableByteStreamController.enqueue

This commit is contained in:
Shannon Booth 2023-12-02 21:45:40 +13:00 committed by Andreas Kling
commit 48aa9fbe07
Notes: sideshowbarker 2024-07-17 05:18:58 +09:00
3 changed files with 23 additions and 1 deletions

View file

@ -89,6 +89,7 @@ public:
Optional<double> desired_size() const;
WebIDL::ExceptionOr<void> close();
void error(JS::Value error);
WebIDL::ExceptionOr<void> enqueue(JS::Handle<WebIDL::ArrayBufferView>&);
Optional<u64> const& auto_allocate_chunk_size() { return m_auto_allocate_chunk_size; }
void set_auto_allocate_chunk_size(Optional<u64> value) { m_auto_allocate_chunk_size = value; }