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

Function makeFloat32Array

src/Util.h:155–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154
155inline v8::Local<v8::Object> makeFloat32Array(const float* data, uint32_t length) {
156 v8::Local<v8::Object> array = makeTypedArray(A_Float32, length);
157 float* dest = GET_FLOAT32ARRAY_ARRAY_DATA(array);
158 memcpy(dest, data, length * sizeof(data[0]));
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);

Callers 3

_makeTypedArrayFunction · 0.85
polygonizeMethod · 0.85
NAN_METHODFunction · 0.85

Calls 1

makeTypedArrayFunction · 0.85

Tested by

no test coverage detected