NO_TITLE
Table of Contents
Gnome::Glib::T-varianttype§
Class initialization§
new§
Initialization of a type class is simple and only needed when the standalone functions are used.
method new ( )
Record N-VariantType§
This is an opaque type of which fields are not available.
class N-VariantType:auth<github:MARTIMM>:api<2> is export is repr('CStruct') { }
Standalone Functions§
variant-type-string-is-valid§
Checks if $type-string is a valid GVariant type string. This call is equivalent to calling g_variant_type_string_scan() and confirming that the following character is a nul terminator.
method variant-type-string-is-valid ( Str $type-string --> Bool )
- $type-string; a pointer to any string.
Return value; True if $type-string is exactly one valid type string
Since 2.24.
variant-type-string-scan§
Scan for a single complete and valid GVariant type string in $string. The memory pointed to by $limit (or bytes beyond it) is never accessed.
If a valid type string is found, $endptr is updated to point to the first character past the end of the string that was found and True is returned.
If there is no valid type string starting at $string, or if the type string does not end before $limit then False is returned.
For the simple case of checking if a string is a valid type string, see g_variant_type_string_is_valid().
method variant-type-string-scan ( Str $string, Str $limit, Array[Str] $endptr --> Bool )
- $string; a pointer to any string.
- $limit; the end of $string, or undefined.
- $endptr; (transfer ownership: full) location to store the end pointer, or undefined.
Return value; True if a valid type string was found.
About my projects, examples and tutorials