aboutsummaryrefslogtreecommitdiff
path: root/src/Spv.Generator/IOperand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Spv.Generator/IOperand.cs')
-rw-r--r--src/Spv.Generator/IOperand.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Spv.Generator/IOperand.cs b/src/Spv.Generator/IOperand.cs
new file mode 100644
index 00000000..bda2ed69
--- /dev/null
+++ b/src/Spv.Generator/IOperand.cs
@@ -0,0 +1,14 @@
+using System;
+using System.IO;
+
+namespace Spv.Generator
+{
+ public interface IOperand : IEquatable<IOperand>
+ {
+ OperandType Type { get; }
+
+ ushort WordCount { get; }
+
+ void WriteOperand(BinaryWriter writer);
+ }
+}