Pg: Add perl2bin() and bin2perl() conversion methods

This commit is contained in:
Yorhel 2025-04-30 17:07:44 +02:00
parent af9340f908
commit beeefcf337
4 changed files with 69 additions and 2 deletions

8
FU.xs
View file

@ -286,6 +286,14 @@ void _set_type(fupg_conn *c, SV *name, SV *sendsv, SV *recvsv)
fupg_set_type(aTHX_ c, name, sendsv, recvsv);
XSRETURN(1);
void perl2bin(fupg_conn *c, int oid, SV *sv)
CODE:
ST(0) = fupg_perl2bin(aTHX_ c, oid, sv);
void bin2perl(fupg_conn *c, int oid, SV *sv)
CODE:
ST(0) = fupg_bin2perl(aTHX_ c, oid, sv);
MODULE = FU PACKAGE = FU::Pg::txn