diff options
Diffstat (limited to 'src/WebAssembly/Execution/ExternVal.php')
| -rw-r--r-- | src/WebAssembly/Execution/ExternVal.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/WebAssembly/Execution/ExternVal.php b/src/WebAssembly/Execution/ExternVal.php new file mode 100644 index 0000000..116ce53 --- /dev/null +++ b/src/WebAssembly/Execution/ExternVal.php @@ -0,0 +1,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); + } +} |
