BSD Ports

devel/p5-FFI-Platypus-Type-PtrObject 0.03 DragonFly

Platypus custom type for an object wrapped around an opaque pointer

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
11.4 KiB, 43.1 KiB installed

Description

FFI::Platypus::Type::PtrObject is a helper type for FFI::Platypus that handles type checking for the common pattern where a Perl class is a simple wrapper around an opaque pointer. The class should be implemented as a hash reference, and the pointer itself is expected to be stored on the ptr key. If the caller of the interface (Perl) is responsible for cleaning up the memory, then it normally should be done in the DESTROY method (as above).

If you do not pass in the correct type, it will be detected before the C code is called and an exception will be thrown. (otherwise you would probably get a segment violation SEGV).

In the other systems

The newest version among them is 0.03, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-FFI-Platypus-Type-PtrObject0.03 newestnone known-[email protected]-
FreeBSDdevel/p5-FFI-Platypus-Type-PtrObject0.03 newestnone known-[email protected]-
HardenedBSDdevel/p5-FFI-Platypus-Type-PtrObject0.03 newestno data-[email protected]-
GhostBSDdevel/p5-FFI-Platypus-Type-PtrObject0.03 newestno data-[email protected]-

Install

Binary package:

pkg install p5-FFI-Platypus-Type-PtrObject

From DPorts:

cd /usr/dports/devel/p5-FFI-Platypus-Type-PtrObject && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 3