summaryrefslogtreecommitdiff
path: root/Make.cs
diff options
context:
space:
mode:
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 293312e..24f3ac2 100644
--- a/Make.cs
+++ b/Make.cs
@@ -50,4 +50,9 @@ public static class Make
{
return BinaryPrimitives.ReadInt16BigEndian(value);
}
+
+ public static i16 i16(u8 high, u8 low)
+ {
+ return BinaryPrimitives.ReadInt16BigEndian(new ReadOnlySpan<u8>([high, low]));
+ }
} \ No newline at end of file