| 248 | }; |
| 249 | |
| 250 | struct JSTypedArray { |
| 251 | TypedArrayType type = TypedArrayType::ArrayBuffer; |
| 252 | void* data = nullptr; |
| 253 | size_t length = 0; |
| 254 | JSValueRef arrayBuffer = JSValueRef(); |
| 255 | |
| 256 | inline JSTypedArray() = default; |
| 257 | inline JSTypedArray(TypedArrayType type, void* data, size_t length, JSValueRef&& arrayBuffer) |
| 258 | : type(type), data(data), length(length), arrayBuffer(std::move(arrayBuffer)) {} |
| 259 | }; |
| 260 | |
| 261 | } // namespace Valdi |
no outgoing calls