Lines Matching defs:data
62 * data (from the wasm heap).
79 // Note: Use of this constructor is 5-20x slower than manually copying the data on the JS side
83 T* data;
88 data = reinterpret_cast<T*>(src["byteOffset"].as<size_t>());
91 data = static_cast<T*>(sk_malloc_throw(len, sizeof(T)));
93 // now actually copy into 'data'
95 auto dst_view = emscripten::val(typed_memory_view(len, data));
99 data[i] = src[i].as<T>();
103 fSpan = SkSpan(data, len);
112 sk_free(fSpan.data());
116 const T* data() const { return fSpan.data(); }