| 177 | return array; |
| 178 | } |
| 179 | inline v8::Local<v8::Object> makeUint8Array(const unsigned char* data, uint32_t length) { |
| 180 | v8::Local<v8::Object> array = makeTypedArray(A_UInt8, length); |
| 181 | unsigned char* dest = GET_UINT8ARRAY_ARRAY_DATA(array); |
| 182 | memcpy(dest, data, length * sizeof(data[0])); |
| 183 | return array; |
| 184 | } |
| 185 | |
| 186 | |
| 187 |
no test coverage detected