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

LibJS: Add ArrayBuffer::create() for ByteBuffer passed by value

This commit is contained in:
Linus Groh 2021-12-13 22:05:42 +00:00 committed by Andreas Kling
parent 615be9eb7c
commit 841bd680fa
2 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,7 @@ class ArrayBuffer : public Object {
public:
static ArrayBuffer* create(GlobalObject&, size_t);
static ArrayBuffer* create(GlobalObject&, ByteBuffer);
static ArrayBuffer* create(GlobalObject&, ByteBuffer*);
ArrayBuffer(ByteBuffer buffer, Object& prototype);