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

Function gjs_array_from_fixed_size_array

gi/arg.cpp:2571–2582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2569}
2570
2571GJS_JSAPI_RETURN_CONVENTION
2572static 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
2584bool gjs_value_from_explicit_array(
2585 JSContext* cx, JS::MutableHandleValue value_p,

Callers 1

Calls 4

array_fixed_sizeMethod · 0.80
array_typeMethod · 0.80
element_typeMethod · 0.80

Tested by

no test coverage detected