ExtUtils::Typemaps::Type(3pm) Perl Programmers Reference Guide ExtUtils::Typemaps::Type(3pm)

# [NAME](#NAME)

ExtUtils::Typemaps::Type - Entry in the TYPEMAP section of a typemap

# [SYNOPSIS](#SYNOPSIS)

```
  use ExtUtils::Typemaps;
  ...
  my $type = $typemap->get_type_map('char*');
  my $input = $typemap->get_input_map($type->xstype);
```

# [DESCRIPTION](#DESCRIPTION)

Refer to ExtUtils::Typemaps for details. Object associates "ctype" with "xstype", which is the index into the in- and output mapping tables.

# [METHODS](#METHODS)

## [new](#new)

Requires "xstype" and "ctype" parameters.

Optionally takes "prototype" parameter. Note however that the method to get/set the value is called "proto" rather than &lt;prototype&gt;.

## [proto](#proto)

Returns or sets the prototype.

## [xstype](#xstype)

Returns the name of the XS type that this C type is associated to.

## [ctype](#ctype)

Returns the name of the C type as it was set on construction.

## [tidy\_ctype](#tidy_ctype)

Returns the canonicalized name of the C type.

# [SEE ALSO](#SEE_ALSO)

ExtUtils::Typemaps

# [AUTHOR](#AUTHOR)

Steffen Mueller "&lt;smueller@cpan.org"&gt;

# [COPYRIGHT & LICENSE](#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.

2026-10-27 perl v5.44.0

---

Document: ExtUtils::Typemaps::Type(3pm) from perl 5.44.0-r4 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
