| 1572 | using BasicExplicitCArrayOut::BasicExplicitCArrayOut; |
| 1573 | |
| 1574 | bool in(JSContext* cx, GjsFunctionCallState* state, GIArgument* arg, |
| 1575 | JS::HandleValue value) override { |
| 1576 | void* data; |
| 1577 | size_t length; |
| 1578 | |
| 1579 | if (!gjs_array_to_basic_explicit_array( |
| 1580 | cx, value, m_element_tag, m_arg_name, GJS_ARGUMENT_ARGUMENT, |
| 1581 | flags(), &data, &length)) |
| 1582 | return false; |
| 1583 | |
| 1584 | gjs_gi_argument_set_array_length(m_tag, &state->in_cvalue(m_length_pos), |
| 1585 | length); |
| 1586 | gjs_arg_set(arg, data); |
| 1587 | return true; |
| 1588 | } |
| 1589 | bool out(JSContext*, GjsFunctionCallState*, GIArgument*, |
| 1590 | JS::MutableHandleValue) override { |
| 1591 | return skip(); |
nothing calls this directly
no test coverage detected