blob: dacfad1f060666df093b0e9ef97fcf86ab466d03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
declare(strict_types=1);
namespace Nsfisis\Waddiwasi\WebAssembly\Execution;
abstract readonly class Extern
{
final public static function Func(FuncInst $func): Externs\Func
{
return new Externs\Func($func);
}
final public static function Table(TableInst $table): Externs\Table
{
return new Externs\Table($table);
}
final public static function Mem(MemInst $mem): Externs\Mem
{
return new Externs\Mem($mem);
}
final public static function Global_(GlobalInst $global): Externs\Global_
{
return new Externs\Global_($global);
}
}
|