// Copyright 2021 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_V8_TYPED_ARRAY_H_ #define INCLUDE_V8_TYPED_ARRAY_H_ #include <limits> #include "v8-array-buffer.h" // NOLINT(build/include_directory) #include "v8-local-handle.h" // NOLINT(build/include_directory) #include "v8config.h" // NOLINT(build/include_directory) namespace v8 { /** * A base class for an instance of TypedArray series of constructors * (ES6 draft 15.13.6). */ class V8_EXPORT TypedArray : public ArrayBufferView { … }; /** * An instance of Uint8Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Uint8Array : public TypedArray { … }; /** * An instance of Uint8ClampedArray constructor (ES6 draft 15.13.6). */ class V8_EXPORT Uint8ClampedArray : public TypedArray { … }; /** * An instance of Int8Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Int8Array : public TypedArray { … }; /** * An instance of Uint16Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Uint16Array : public TypedArray { … }; /** * An instance of Int16Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Int16Array : public TypedArray { … }; /** * An instance of Uint32Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Uint32Array : public TypedArray { … }; /** * An instance of Int32Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Int32Array : public TypedArray { … }; /** * An instance of Float16Array constructor. */ class V8_EXPORT Float16Array : public TypedArray { … }; /** * An instance of Float32Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Float32Array : public TypedArray { … }; /** * An instance of Float64Array constructor (ES6 draft 15.13.6). */ class V8_EXPORT Float64Array : public TypedArray { … }; /** * An instance of BigInt64Array constructor. */ class V8_EXPORT BigInt64Array : public TypedArray { … }; /** * An instance of BigUint64Array constructor. */ class V8_EXPORT BigUint64Array : public TypedArray { … }; } // namespace v8 #endif // INCLUDE_V8_TYPED_ARRAY_H_