Tangence::Type(3pm)
π Tangence::Type π
okay bestie, so this is the manual page for Tangence::Type β that's the Perl module, the (3pm) situation, and honestly? it's giving glow up.
β¨ NAME β¨
Tangence::Type β it's the class that represents a Tangence value type. that's it. that's the whole name. short, sweet, iconic. π
πΈ DESCRIPTION πΈ
So like. Objects in this class? They represent individual types that get sent over the wire in Tangence messages. periodt.
And here's the cute part β Tangence::Type is a subclass of Tangence::Meta::Type, which means it inherits all that good stuff and provides extra methods that may be useful in server or client implementations. it's the main character with a supporting cast, fr fr. π
π CONSTRUCTOR π
make
$type = Tangence::Type->make( $primitive_sig );
Returns an instance to represent a primitive type of the given signature. boom. instant. slay. β¨
$type = Tangence::Type->make( list => $member_type );
$type = Tangence::Type->make( dict => $member_type );
Returns an instance to represent a list or dict aggregation containing members of the given type. so like, you're building a little collection of $member_type β a list of them, or a dict of them. choose your fighter. π¦
π METHODS π
default_value
$value = $type->default_value;
Returns a value suitable to use as an initial value for object properties. it's the lil starter value, the blank slate, the pre-glow-up version of your property. π₯Ί
pack_value
$type->pack_value( $message, $value );
Appends a value of this type to the end of a Tangence::Message. note that β the end. it's going to the back of the line, respectfully. π
unpack_value
$value = $type->unpack_value( $message );
Removes a value of this type from the start of a Tangence::Message. and this one? this one's taking from the front. completely different energy from pack_value, don't get it twisted. π
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk>
(we love him, we thank him, no cap π«Ά)
and that's the whole page, bestie!! this was Tangence::Type(3pm) from the User Contributed Perl Documentation, generated with perl v5.40.0 and dated 2024-09-13. stay typed, stay iconic, and don't forget to pack_value at the end and unpack_value at the start. mwah. πβ¨π
π¦ where this page comes from
- ubuntu resolute: libtangence-perl 0.33-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtangence-perl 0.33-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms