blob: c5dc1cdb34d6977cdc19064094743e2d1d75a396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
declare(strict_types=1);
namespace Nsfisis\Waddiwasi\WebAssembly\Execution\FuncInsts;
use Nsfisis\Waddiwasi\WebAssembly\Execution\FuncInst;
use Nsfisis\Waddiwasi\WebAssembly\Execution\Ref;
use Nsfisis\Waddiwasi\WebAssembly\Execution\Runtime;
use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\FuncType;
final readonly class Host extends FuncInst
{
/**
* @param callable(Runtime, int|float|Ref...): ?(int|float|Ref|list<int|float|Ref>) $callback
*/
public function __construct(
public FuncType $type,
public mixed $callback,
) {
}
}
|