MCPcopy Create free account
hub / github.com/GNOME/gjs / out

Method out

gi/arg-cache.cpp:1635–1642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1633 return set_inout_parameter(state, arg);
1634 }
1635 bool out(JSContext* cx, GjsFunctionCallState* state, GIArgument* arg,
1636 JS::MutableHandleValue value) override {
1637 GIArgument* length_arg = &(state->out_cvalue(m_length_pos));
1638 size_t length = gjs_gi_argument_get_array_length(m_tag, length_arg);
1639
1640 return gjs_value_from_basic_explicit_array(cx, value, m_element_tag,
1641 arg, length);
1642 }
1643 bool release(JSContext*, GjsFunctionCallState* state,
1644 GIArgument* in_arg [[maybe_unused]],
1645 GIArgument* out_arg) override {

Callers

nothing calls this directly

Tested by

no test coverage detected