Overte C++ Documentation
DataViewClass.h
1 //
2 // DataViewClass.h
3 //
4 //
5 // Created by Clement on 7/8/14.
6 // Copyright 2014 High Fidelity, Inc.
7 // Copyright 2023 Overte e.V.
8 //
9 // Distributed under the Apache License, Version 2.0.
10 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
11 // SPDX-License-Identifier: Apache-2.0
12 //
13 
16 
17 #ifndef hifi_DataViewClass_h
18 #define hifi_DataViewClass_h
19 
20 // V8TODO Do not remove yet, this will be useful in later PRs
21 /*
22 #include "ArrayBufferViewClass.h"
23 
25 class DataViewClass : public ArrayBufferViewClass {
26  Q_OBJECT
27 public:
28  DataViewClass(ScriptEngineV8* scriptEngine);
29  V8ScriptValue newInstance(V8ScriptValue buffer, quint32 byteOffset, quint32 byteLength);
30 
31  QString name() const override;
32  V8ScriptValue prototype() const override;
33 
34 private:
35  static V8ScriptValue construct(V8ScriptContext* context, QScriptEngine* engine);
36 
37  V8ScriptValue _proto;
38  V8ScriptValue _ctor;
39 
40  V8ScriptString _name;
41 };
42 */
43 
44 #endif // hifi_DataViewClass_h
45