Ejemplo n.º 1
0
 public ByteFlagsHexField(HexDocument doc, string parentName, string name, ulong start)
     : base(doc, parentName, name, start, 1)
 {
     this.data = new ByteVM((byte)doc.ReadByte(start), a => UpdateValue(), false);
 }
Ejemplo n.º 2
0
 public ByteHexField(HexDocument doc, string parentName, string name, ulong start, bool useDecimal = false)
     : base(doc, parentName, name, start, 1)
 {
     this.data = new ByteVM((byte)doc.ReadByte(start), a => UpdateValue(), useDecimal);
 }
Ejemplo n.º 3
0
 public ByteHexField(HexDocument doc, string parentName, string name, ulong start, bool useDecimal = false)
     : base(doc, parentName, name, start, 1)
 {
     var val = (byte)doc.ReadByte(start);
     this.data = new ByteVM(val, a => UpdateValue());
     if (useDecimal)
         this.data.Value = val;
 }