aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BitOps/PackIntSpecifiers.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-04-05 23:26:56 +0900
committernsfisis <nsfisis@gmail.com>2025-04-06 02:03:32 +0900
commitb47f6c38389762aff3b1b86c179517d3e9d9eb87 (patch)
treeff1a3cae32e91a816537fc8dee961a9d4a2d9415 /src/BitOps/PackIntSpecifiers.php
parent3d0f0b06ee25571034a13a43d2ca660ef687afa9 (diff)
downloadphp-waddiwasi-b47f6c38389762aff3b1b86c179517d3e9d9eb87.tar.gz
php-waddiwasi-b47f6c38389762aff3b1b86c179517d3e9d9eb87.tar.zst
php-waddiwasi-b47f6c38389762aff3b1b86c179517d3e9d9eb87.zip
refactor: add BitOps component
Diffstat (limited to 'src/BitOps/PackIntSpecifiers.php')
-rw-r--r--src/BitOps/PackIntSpecifiers.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/BitOps/PackIntSpecifiers.php b/src/BitOps/PackIntSpecifiers.php
new file mode 100644
index 0000000..da10ab2
--- /dev/null
+++ b/src/BitOps/PackIntSpecifiers.php
@@ -0,0 +1,14 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\BitOps;
+
+enum PackIntSpecifiers: string
+{
+ case Int8 = 'c';
+ case Int16LittleEndian = 'v';
+ case Int32LittleEndian = 'V';
+ case Int64BigEndian = 'J';
+ case Int64LittleEndian = 'P';
+}