Exemplo n.º 1
0
 HexSpan?TryGetSpan(FatMethodBody fatBody, HexPosition position, UInt16Data offsetData, ByteData lengthData)
 {
     if (!offsetData.Span.Span.Contains(position))
     {
         return(null);
     }
     return(TryGetSpan(fatBody, offsetData.ReadValue(), lengthData.ReadValue()));
 }
Exemplo n.º 2
0
        public override string GetToolTipText(HotSpot spot)
        {
            var value = new UInt16Data {
                ShortValue = spot.Memory.ReadInt16(Offset)
            };

            return($"Int16: {value.ShortValue}\nUInt16: 0x{value.UShortValue:X04}");
        }
Exemplo n.º 3
0
 public UInt16HexField(UInt16Data data, string fieldName, bool useDecimal = false)
     : base(data, fieldName)
 {
     this.data = new UInt16VM(buffer.ReadUInt16(Span.Start), a => UpdateValue(), useDecimal);
 }
Exemplo n.º 4
0
 public UInt16Field(string objectName, string fieldName, ushort defaultValue)
 {
     data = PersistentData.GetData <UInt16Data>(objectName, fieldName);
 }