FFI::Platypus::TypeParser::Version1 - FFI Type Parser Version One
Contents
Copyright And License
This software is copyright (c) 2015-2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5
programming language system itself.
perl v5.40.0 2025-01-11 FFI::Platypus:...arser::Version1(3pm)
Description
This documents the second (version 1) type parser for FFI::Platypus. This type parser was included with
FFI::Platypus starting with version 0.91 in an experimental capability, and 1.00 as a stable interface.
Starting with version 1.00 the main FFI::Platypus documentation describes the version 1 API and you can
refer to FFI::Platypus::TypeParser::Version0 for details on the version0 API.
Name
FFI::Platypus::TypeParser::Version1 - FFI Type Parser Version One
See Also
FFI::Platypus
The core FFI::Platypus documentation.
FFI::Platypus::TypeParser::Version0
The API 0.02 type parser.
Synopsis
use FFI::Platypus 1.00;
my $ffi = FFI::Platypus->new( api => 1 );
$ffi->type('record(Foo::Bar)' => 'foo_bar_t');
$ffi->type('record(Foo::Bar)*' => 'foo_bar_ptr');
$ffi->type('opaque' => 'baz_t');
$ffi->type('bar_t*' => 'baz_ptr');
Version
version 2.10
