mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
LibWeb: Avoid needless copies during Blob construction
This commit is contained in:
parent
5806eeec08
commit
ac36d272d3
2 changed files with 4 additions and 5 deletions
|
@ -33,8 +33,7 @@ class Blob
|
|||
|
||||
public:
|
||||
using WrapperType = Bindings::BlobWrapper;
|
||||
|
||||
Blob(ByteBuffer const& byte_buffer, String const& type);
|
||||
Blob(ByteBuffer byte_buffer, String type);
|
||||
|
||||
static DOM::ExceptionOr<NonnullRefPtr<Blob>> create(Optional<Vector<BlobPart>> const& blob_parts = {}, Optional<BlobPropertyBag> const& options = {});
|
||||
static DOM::ExceptionOr<NonnullRefPtr<Blob>> create_with_global_object(Bindings::WindowObject&, Optional<Vector<BlobPart>> const& blob_parts = {}, Optional<BlobPropertyBag> const& options = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue