| 153 | |
| 154 | |
| 155 | inline 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 | } |
| 161 | inline 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); |
no test coverage detected