From 26f49b7e27076e689541b9e13a1b54f60a4ee5c2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 11 Jul 2024 02:57:23 +0900 Subject: feat: organize namespaces --- src/WebAssembly/BinaryFormat/Internal/Code.php | 23 ++++++++++++++++++++ src/WebAssembly/BinaryFormat/Internal/Locals.php | 22 +++++++++++++++++++ .../BinaryFormat/Internal/SectionId.php | 25 ++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 src/WebAssembly/BinaryFormat/Internal/Code.php create mode 100644 src/WebAssembly/BinaryFormat/Internal/Locals.php create mode 100644 src/WebAssembly/BinaryFormat/Internal/SectionId.php (limited to 'src/WebAssembly/BinaryFormat/Internal') diff --git a/src/WebAssembly/BinaryFormat/Internal/Code.php b/src/WebAssembly/BinaryFormat/Internal/Code.php new file mode 100644 index 0000000..80010e2 --- /dev/null +++ b/src/WebAssembly/BinaryFormat/Internal/Code.php @@ -0,0 +1,23 @@ + $compressedLocals + * @param list $body + */ + public function __construct( + public array $compressedLocals, + public array $body, + ) { + } +} 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 @@ +