Group
Extension

Matches 3

Extism ( E/EX/EXTISM/Extism-v0.3.1.tar.gz, EXTISM, 2025; MetaCPAN )
Extism/lib/Extism/Function.pm ( view source; MetaCPAN )
our %EXPORT_TAGS;
$EXPORT_TAGS{all} = [@EXPORT_OK];

# [PTR_LENGTH, PTR_PAIR, SZ, JSON_PTR_LENGTH, JSON_PTR_PAIR, JSON_SZ, U8ARRAY_PTR_LENGTH, U8ARRAY_]

sub new {
    my ($class, $name, $input_types,
Extism ( E/EX/EXTISM/Extism-v0.3.1.tar.gz, EXTISM, 2025; MetaCPAN )
Extism/lib/Extism/Plugin.pm ( view source; MetaCPAN )
gin qw(BuildPluginNewParams);
use Data::Dumper qw(Dumper);
use Devel::Peek qw(Dump);
use JSON::PP qw(encode_json);
use Scalar::Util qw(reftype);

sub new {
    my ($name, $wasm, $options) = @_;
    my
ll be
# passed to the plugin. If INPUT is a reference, the referenced item will be
# encoded with json and then passed to the plugin.
sub call {
    my ($self, $func_name, $input, $host_context) = @_;
$input);
    if ($type) {
        $input = $$input if($type eq 'SCALAR');
        $input = encode_json($input);
    }
    my $rc = plugin_call($$self, $func_name, $input, length($input), $host_context
Extism ( E/EX/EXTISM/Extism-v0.3.1.tar.gz, EXTISM, 2025; MetaCPAN )
Extism/lib/Extism/XS.xs ( view source; MetaCPAN )
gin, sv_json)
    ExtismPlugin *plugin
    SV *sv_json
    CODE:
        STRLEN json_len;
        char *json = SvPV(sv_json, json_len);
        RETVAL = extism_plugin_config(plugin, json, json_len);
 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.