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 the Net::DBus object 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 (C) 2004-2011 Daniel P. Berrange


πŸ”₯ SEE ALSO πŸ”₯

  • Net::DBus
  • Net::DBus::Binding::Introspector
  • Net::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. βœ¨πŸŽ€