aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/FuncInsts/Host.php
blob: 6a6632548452f4ae9841f196dd5a830633e034a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Execution\FuncInsts;

use Nsfisis\Waddiwasi\WebAssembly\Execution\FuncInst;
use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\FuncType;

final readonly class Host extends FuncInst
{
    /**
     * @param callable $callback
     */
    public function __construct(
        public FuncType $type,
        public mixed $callback,
    ) {
    }
}