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