Tangence::Type(3pm)

πŸ“¦
version 0.33 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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