// // DataViewClass.h // // // Created by Clement on 7/8/14. // Copyright 2014 High Fidelity, Inc. // Copyright 2023 Overte e.V. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // SPDX-License-Identifier: Apache-2.0 // /// @addtogroup ScriptEngine /// @{ #ifndef hifi_DataViewClass_h #define hifi_DataViewClass_h // V8TODO Do not remove yet, this will be useful in later PRs /* #include "ArrayBufferViewClass.h" /// [V8] Implements the DataView scripting class class DataViewClass : public ArrayBufferViewClass { Q_OBJECT public: DataViewClass(ScriptEngineV8* scriptEngine); V8ScriptValue newInstance(V8ScriptValue buffer, quint32 byteOffset, quint32 byteLength); QString name() const override; V8ScriptValue prototype() const override; private: static V8ScriptValue construct(V8ScriptContext* context, QScriptEngine* engine); V8ScriptValue _proto; V8ScriptValue _ctor; V8ScriptString _name; }; */ #endif // hifi_DataViewClass_h /// @}