MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / makeInt32Array

Function makeInt32Array

src/Util.h:161–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 return array;
160}
161inline v8::Local<v8::Object> makeInt32Array(const int* data, uint32_t length) {
162 v8::Local<v8::Object> array = makeTypedArray(A_Int32, length);
163 int* dest = GET_INT32ARRAY_ARRAY_DATA(array);
164 memcpy(dest, data, length * sizeof(data[0]));
165 return array;
166}
167inline v8::Local<v8::Object> makeUint32Array(const unsigned int* data, uint32_t length) {
168 v8::Local<v8::Object> array = makeTypedArray(A_UInt32, length);
169 unsigned int* dest = GET_UINT32ARRAY_ARRAY_DATA(array);

Callers 1

_makeTypedArrayFunction · 0.85

Calls 1

makeTypedArrayFunction · 0.85

Tested by

no test coverage detected