aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/ExternVal.php
blob: 116ce5302bbe7cfedb9b8d3e330fbeff20187aa9 (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 ExternVal
{
    final public static function Func(int $addr): ExternVals\Func
    {
        return new ExternVals\Func($addr);
    }

    final public static function Table(int $addr): ExternVals\Table
    {
        return new ExternVals\Table($addr);
    }

    final public static function Mem(int $addr): ExternVals\Mem
    {
        return new ExternVals\Mem($addr);
    }

    final public static function Global_(int $addr): ExternVals\Global_
    {
        return new ExternVals\Global_($addr);
    }
}