pack_ptr#

Pack an address into a native pointer-sized byte string.

Synopsis#

# Build a char*[] for PQexecParams-style APIs:
my $vec = join "", map { Peta::FFI::pack_ptr($_) } @addrs;

What you get back#

The address as native-endian bytes, sized to the platform pointer width - the in-memory representation a C pointer slot holds.