1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibWeb: Implement FileAPI::Blob::get_stream()

This is used internally in many Blob algorithms, such as Blob::stream(),
Blob::text() and Blob::array_buffer().
This commit is contained in:
Shannon Booth 2023-06-13 07:31:06 +12:00 committed by Andreas Kling
parent 94883866f5
commit 9f39be6e23
2 changed files with 62 additions and 0 deletions

View file

@ -55,6 +55,8 @@ protected:
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
private:
WebIDL::ExceptionOr<JS::NonnullGCPtr<Streams::ReadableStream>> get_stream();
explicit Blob(JS::Realm&);
ByteBuffer m_byte_buffer {};