aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Modules/ExportDesc.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Structure/Modules/ExportDesc.php')
-rw-r--r--src/WebAssembly/Structure/Modules/ExportDesc.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/WebAssembly/Structure/Modules/ExportDesc.php b/src/WebAssembly/Structure/Modules/ExportDesc.php
new file mode 100644
index 0000000..3462569
--- /dev/null
+++ b/src/WebAssembly/Structure/Modules/ExportDesc.php
@@ -0,0 +1,28 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules;
+
+abstract readonly class ExportDesc
+{
+ final public static function Func(int $func): ExportDescs\Func
+ {
+ return new ExportDescs\Func($func);
+ }
+
+ final public static function Table(int $table): ExportDescs\Table
+ {
+ return new ExportDescs\Table($table);
+ }
+
+ final public static function Mem(int $mem): ExportDescs\Mem
+ {
+ return new ExportDescs\Mem($mem);
+ }
+
+ final public static function Global(int $global): ExportDescs\Global_
+ {
+ return new ExportDescs\Global_($global);
+ }
+}