| 2569 | } |
| 2570 | |
| 2571 | GJS_JSAPI_RETURN_CONVENTION |
| 2572 | static bool gjs_array_from_fixed_size_array(JSContext* cx, |
| 2573 | JS::MutableHandleValue value_p, |
| 2574 | const GI::TypeInfo& type_info, |
| 2575 | GITransfer transfer, void* array) { |
| 2576 | Maybe<size_t> length = type_info.array_fixed_size(); |
| 2577 | g_assert(length); |
| 2578 | |
| 2579 | return gjs_array_from_carray_internal(cx, value_p, type_info.array_type(), |
| 2580 | type_info.element_type(), transfer, |
| 2581 | *length, array); |
| 2582 | } |
| 2583 | |
| 2584 | bool gjs_value_from_explicit_array( |
| 2585 | JSContext* cx, JS::MutableHandleValue value_p, |
no test coverage detected