aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/BinaryFormat/Internal/Locals.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/BinaryFormat/Internal/Locals.php')
-rw-r--r--src/WebAssembly/BinaryFormat/Internal/Locals.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/WebAssembly/BinaryFormat/Internal/Locals.php b/src/WebAssembly/BinaryFormat/Internal/Locals.php
new file mode 100644
index 0000000..7cc0029
--- /dev/null
+++ b/src/WebAssembly/BinaryFormat/Internal/Locals.php
@@ -0,0 +1,22 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\WebAssembly\BinaryFormat\Internal;
+
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType;
+
+/**
+ * @internal
+ */
+final readonly class Locals
+{
+ /**
+ * @param U32 $count
+ */
+ public function __construct(
+ public int $count,
+ public ValType $type,
+ ) {
+ }
+}