blob: f7b67605af857f543e6d62a6aacbf3c0e34fd1be (
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
|
<?php
declare(strict_types=1);
namespace Nsfisis\Waddiwasi\WebAssembly\Execution;
use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\RefType;
abstract readonly class Ref
{
final public static function RefNull(RefType $type): Refs\RefNull
{
return new Refs\RefNull($type);
}
final public static function RefFunc(int $addr): Refs\RefFunc
{
return new Refs\RefFunc($addr);
}
final public static function RefExtern(int $addr): Refs\RefExtern
{
return new Refs\RefExtern($addr);
}
}
|