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 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 from perl v5.44.0, dated 2026-10-17, and it's the ExtUti...::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