init

fun init(value: Variant): <Error class: unknown class>

Initialises (without allocating) a #GVariantIter. @iter may be completely uninitialised prior to this call; its old value is ignored.

The iterator remains valid for as long as @value exists, and need not be freed in any way.

Return

the number of items in @value

Since

2.24

Parameters

value

a container #GVariant