logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

"Tangence::Type" - represent a "Tangence" value type

Author

       Paul Evans <leonerd@leonerd.org.uk>

perl v5.40.0                                       2024-09-13                                Tangence::Type(3pm)

Constructor

make
          $type = Tangence::Type->make( $primitive_sig );

       Returns an instance to represent a primitive type of the given signature.

          $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.

Description

       Objects in this class represent individual types that are sent over the wire in Tangence messages. This
       is a subclass of Tangence::Meta::Type which provides additional methods that may be useful in server or
       client implementations.

Methods

default_value
          $value = $type->default_value;

       Returns a value suitable to use as an initial value for object properties.

   pack_value
          $type->pack_value( $message, $value );

       Appends a value of this type to the end of a Tangence::Message.

   unpack_value
          $value = $type->unpack_value( $message );

       Removes a value of this type from the start of a Tangence::Message.

Name

       "Tangence::Type" - represent a "Tangence" value type

See Also