ExtUtil...s::Type(3pm)
πΈ NAME πΈ
okay bestie, welcome to ExtUtils::Typemaps::Type(3pm) from the Perl Programmers Reference Guide β here's the name tea: ExtUtils::Typemaps::Type β Entry in the TYPEMAP section of a typemap. No cap, that's the whole name vibe π
β¨
β¨ SYNOPSIS β¨
here's the tiny code moment, copy it exactly:
use ExtUtils::Typemaps;
...
my $type = $typemap->get_type_map('char*');
my $input = $typemap->get_input_map($type->xstype);
π¦ DESCRIPTION π¦
Refer to ExtUtils::Typemaps for details, bestie. This object lowkey associates ctype with xstype, and xstype is the index into the in- and output mapping tables. That's the whole lore π«Ά
π METHODS π
π« new
- Requires
xstypeandctypeparameters. - Optionally takes
prototypeparameter. But plot twist: the method to get/set the value is calledprotorather than<prototype>. iykyk π
π proto
proto returns or sets the prototype. Periodt.
π¦ xstype
xstype returns the name of the XS type that this C type is associated to. Slay.
π ctype
ctype returns the name of the C type as it was set on construction. Iconic.
π§ tidy_ctype
tidy_ctype returns the canonicalized name of the C type. It's giving clean and canonical π
π SEE ALSO π
ExtUtils::Typemaps
π AUTHOR π
Steffen Mueller <smueller@cpan.org> β yes, that's the author email, bestie π
π 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.
byeee β this page is from perl v5.42.3, dated 2026-11-03 πβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms