Net::DB...g::Value(3)
π NAME π
Net::DBus::Binding::Value β a strongly typed data value, bestie. Like, it's a little wrapper that says "hey, this Perl thing is totally this DBus type," and honestly? iconic.
β¨ SYNOPSIS β¨
okay so first you gotta import the convenience functions:
# Import the convenience functions
use Net::DBus qw(:typing);
then you can, like, actually call a method while passing an int32:
# Call a method with passing an int32
$object->doit(dint32("3"));
see? slay. π«Ά
πΈ DESCRIPTION πΈ
so this module gives you a lil' wrapper around a raw Perl value, and it glues an explicit DBus type onto it. it's giving "i know what i am." π
when do you even need this? okay so picture this: your client is talking to a server that doesn't provide introspection data, and the basic data types just aren't enough. that's the moment. that's the vibe. β¨
lowkey important: this class should not be used directly. like, fr fr, don't. call the convenience functions in Net::DBus instead. iykyk. π
π METHODS π
my $value = Net::DBus::Binding::Value->new($type, $value);β creates a wrapper for the perl value$value, marking it as having the dbus data type$type. but ngl, you don't need to call this method directly β use the data typing methods in theNet::DBusobject instead. main character energy is calling the right function. πmy $raw = $value->valueβ returns the raw perl value wrapped by this object. the og. the real one. πmy $type = $value->typeβ returns the dbus data type this value is marked as having. its whole personality, basically. π¦
π AUTHOR π
Daniel P. Berrange. we stan. π
π COPYRIGHT π
Copyright (C) 2004-2011 Daniel P. Berrange
π₯ SEE ALSO π₯
Net::DBusNet::DBus::Binding::IntrospectorNet::DBus::Binding::Iterator
go read those next, bestie, they're literally right there. π
okay that's the whole page, mwah π β brought to you by perl v5.42.0, dated 2019-12-17, aka the vintage era of Net::DB...g::Value(3). periodt. β¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: perl-Net-DBus 1.2.0-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms