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

248class JSFunction : public SimpleRefCountable {
249public:
250 virtual const ReferenceInfo& getReferenceInfo() const;
251 virtual JSValueRef operator()(JSFunctionNativeCallContext& callContext) noexcept = 0;
252};
253
254struct JSTypedArray {
255 TypedArrayType type = TypedArrayType::ArrayBuffer;
256 void* data = nullptr;
257 size_t length = 0;
258 JSValueRef arrayBuffer = JSValueRef();
259
260 inline JSTypedArray() = default;
261 inline JSTypedArray(TypedArrayType type, void* data, size_t length, JSValueRef&& arrayBuffer)
262 : type(type), data(data), length(length), arrayBuffer(std::move(arrayBuffer)) {}

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