summaryrefslogtreecommitdiff
path: root/Make.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-04 12:07:39 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-04 12:07:39 +1000
commit72f297a479b6749674ec80e91be53b8c482123d2 (patch)
tree05465784b2b5b5adbd695b50e8394c6f78e3a455 /Make.cs
parent86452af2d48e2d1883dbfd67316e371f2a593bfe (diff)
crowbar
Diffstat (limited to 'Make.cs')
-rw-r--r--Make.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Make.cs b/Make.cs
index 6999c4d..293312e 100644
--- a/Make.cs
+++ b/Make.cs
@@ -1,6 +1,7 @@
namespace Q1Emu;
using System;
+using System.Buffers.Binary;
public static class Make
{
@@ -45,4 +46,8 @@ public static class Make
u8 b4 = (u8) (value & 0xFF);
return new ref8([b1, b2, b3, b4], 0, 4);
}
+ public static i16 i16(ref8 value)
+ {
+ return BinaryPrimitives.ReadInt16BigEndian(value);
+ }
} \ No newline at end of file