diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-04 12:07:39 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-04 12:07:39 +1000 |
| commit | 72f297a479b6749674ec80e91be53b8c482123d2 (patch) | |
| tree | 05465784b2b5b5adbd695b50e8394c6f78e3a455 /Make.cs | |
| parent | 86452af2d48e2d1883dbfd67316e371f2a593bfe (diff) | |
crowbar
Diffstat (limited to 'Make.cs')
| -rw-r--r-- | Make.cs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
