MCPcopy Create free account
hub / github.com/Snapchat/Valdi / JSTypedArray

Class JSTypedArray

valdi/src/valdi/runtime/JavaScript/JavaScriptTypes.hpp:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248};
249
250struct 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

Callers 5

valueToTypedArrayMethod · 0.85
valueToTypedArrayMethod · 0.85
valueToTypedArrayMethod · 0.85
valueToTypedArrayMethod · 0.85
valueToTypedArrayMethod · 0.85

Calls

no outgoing calls

Tested by 1

valueToTypedArrayMethod · 0.68