T-varianttype

Gnome::Glib::T-varianttype

#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------

Class initialization

new

Initialization of a type class is simple and only needed when the standalone functions are used.

method new ( )

#------------------------------------------------------------------------------- #--[Record Structure]----------------------------------------------------------- #-------------------------------------------------------------------------------

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]------------------------------------------------------- #-------------------------------------------------------------------------------

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.

Gnome::Glib v0.1.12

Modules for package Gnome::Glib:api<2>. The language binding to GNOME's lowest level library

Authors

    License

    Artistic-2.0

    Dependencies

    Gnome::N:api<2>

    Test Dependencies

    Provides

    • Gnome::Glib::N-Array
    • Gnome::Glib::N-ByteArray
    • Gnome::Glib::N-Bytes
    • Gnome::Glib::N-Error
    • Gnome::Glib::N-List
    • Gnome::Glib::N-MainContext
    • Gnome::Glib::N-MainLoop
    • Gnome::Glib::N-PtrArray
    • Gnome::Glib::N-SList
    • Gnome::Glib::N-Variant
    • Gnome::Glib::N-VariantBuilder
    • Gnome::Glib::N-VariantDict
    • Gnome::Glib::N-VariantIter
    • Gnome::Glib::N-VariantType
    • Gnome::Glib::T-array
    • Gnome::Glib::T-error
    • Gnome::Glib::T-list
    • Gnome::Glib::T-main
    • Gnome::Glib::T-quark
    • Gnome::Glib::T-slist
    • Gnome::Glib::T-variant
    • Gnome::Glib::T-varianttype

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.