ExtUti...::Type(3perl)
π ExtUtils::Typemaps::Type β the vibe check
okay so bestie, you know how ExtUtils::Typemaps has a whole TYPEMAP section and you're like "what even lives in there"? π
This. This is what lives in there. It's a page from the Perl Programmers Reference Guide, section 3perl, and it's literally one single entry in that TYPEMAP section. One little icon. One baddie. π
πΈ NAME πΈ
ExtUtils::Typemaps::Type β an entry in the TYPEMAP section of a typemap, no cap. π
β¨ SYNOPSIS β¨
use ExtUtils::Typemaps;
...
my $type = $typemap->get_type_map('char*');
my $input = $typemap->get_input_map($type->xstype);
look at her go. she's serving TYPEMAP lookups. π
π¦ DESCRIPTION π¦
okay so if you want the full lore, go read ExtUtils::Typemaps β that's the main character, this is the supporting cast. π«Ά
Basically, an object of this class associates a ctype with an xstype, and that xstype is literally the index into the in- and output mapping tables. she's the pointer. the connector. the link-up. π₯
π« METHODS π«
π new
Requires the xstype and ctype parameters, bestie. no skipping steps. β
Optionally it also takes a prototype parameter. but β and this is the plot twist β the method you use to get/set that value is called proto, not <prototype>. i know. i know. it's giving chaotic naming conventions. π
π proto
Returns or sets the prototype. get it, set it, slay. β¨
π xstype
Returns the name of the XS type that this C type is associated to. that's her whole purpose fr fr.
π ctype
Returns the name of the C type, exactly as it was set on construction. no glow-up, no edits, just the original. π
πΈ tidy_ctype
Returns the canonicalized name of the C type. she got a little makeover. canonicalized. iconic. β
π SEE ALSO π
ExtUtils::Typemapsβ go read the main one, i'm begging π«Ά
π AUTHOR π
Steffen Mueller "<smueller@cpan.org>" β legend behaviour, honestly. π
π COPYRIGHT & LICENSE π
Copyright 2009, 2010, 2011, 2012 Steffen Mueller
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
okay so real talk: this page is fromperl v5.44.0, dated2026-10-17, and it's theExtUti...::Type(3perl)girlie herself. π β¨ periodt, bestie, go build something amazing π¦
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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