Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qv4dataview_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QV4DATAVIEW_H
4#define QV4DATAVIEW_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include "qv4object_p.h"
18#include "qv4functionobject_p.h"
19
21
22namespace QV4 {
23
24namespace Heap {
25
29
30#define DataViewMembers(class, Member) \
31 Member(class, Pointer, SharedArrayBuffer *, buffer) \
32 Member(class, NoMark, uint, byteLength) \
33 Member(class, NoMark, uint, byteOffset)
34
37 void init() { Object::init(); }
38};
39
40}
41
43{
45
46 static ReturnedValue virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *);
47 static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc);
48};
49
51{
53 V4_PROTOTYPE(dataViewPrototype)
54};
55
57{
58 void init(ExecutionEngine *engine, Object *ctor);
59
60 static ReturnedValue method_get_buffer(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
61 static ReturnedValue method_get_byteLength(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
62 static ReturnedValue method_get_byteOffset(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
63 template <typename T>
64 static ReturnedValue method_getChar(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
65 template <typename T>
66 static ReturnedValue method_get(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
67 template <typename T>
68 static ReturnedValue method_getFloat(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
69 template <typename T>
70 static ReturnedValue method_setChar(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
71 template <typename T>
72 static ReturnedValue method_set(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
73 template <typename T>
74 static ReturnedValue method_setFloat(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
75};
76
77
78} // namespace QV4
79
81
82#endif
Combined button and popup list for selecting options.
quint64 ReturnedValue
GLfloat GLfloat f
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
#define DECLARE_HEAP_OBJECT(name, base)
#define DECLARE_MARKOBJECTS(class)
#define V4_PROTOTYPE(p)
#define V4_OBJECT2(DataClass, superClass)
static ReturnedValue method_get_buffer(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_setFloat(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_getChar(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_getFloat(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_get_byteLength(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_setChar(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
void init(ExecutionEngine *engine, Object *ctor)
static ReturnedValue method_get(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_set(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_get_byteOffset(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
void init(ExecutionEngine *engine)
ExecutionEngine * engine() const
static constexpr VTable::CallAsConstructor virtualCallAsConstructor
static constexpr VTable::Call virtualCall