1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

LibWeb: Implement "get a copy of the bytes held by the buffer source"

This commit is contained in:
Linus Groh 2021-12-13 22:07:04 +00:00 committed by Andreas Kling
parent 976ab23b9c
commit 5e06d5e9e5
2 changed files with 76 additions and 0 deletions

View file

@ -1,15 +1,18 @@
/*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <LibJS/Forward.h>
namespace Web::Bindings::IDL {
bool is_an_array_index(JS::GlobalObject&, JS::PropertyKey const&);
Optional<ByteBuffer> get_buffer_source_copy(JS::Object const& buffer_source);
}