1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 17:58:12 +00:00

LibWeb: Implement ReadableByteStreamController.enqueue

This commit is contained in:
Shannon Booth 2023-12-02 21:45:40 +13:00 committed by Andreas Kling
parent feb7fbb95d
commit 48aa9fbe07
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; }