예제 #1
0
		public override MetaField CloneValue()
		{
			var result = new BitfieldData(Name, Offset, FieldAddress, _type, base.PluginLine);
			foreach (var bit in _bits)
				result.DefineBit(bit.Key, bit.Value.Name);
			result.Value = _value;
			return result;
		}
예제 #2
0
		public void VisitBitfield(BitfieldData field)
		{
			FilterString(field, field.Name);
			foreach (var bit in field.Bits)
			{
				if (FilterString(field, bit.Name))
					return;
			}
		}
예제 #3
0
 public void VisitBitfield(BitfieldData field)
 {
     FilterString(field, field.Name);
     foreach (var bit in field.Bits)
     {
         if (FilterString(field, bit.Name))
         {
             return;
         }
     }
 }
예제 #4
0
        public override MetaField CloneValue()
        {
            var result = new BitfieldData(Name, Offset, FieldAddress, _type, base.PluginLine);

            foreach (var bit in _bits)
            {
                result.DefineBit(bit.Key, bit.Value.Name);
            }
            result.Value = _value;
            return(result);
        }
예제 #5
0
		public void VisitBitfield(BitfieldData field)
		{
			SeekToOffset(field.Offset);
			switch (field.Type)
			{
				case BitfieldType.Bitfield8:
					field.Value = _reader.ReadByte();
					break;
				case BitfieldType.Bitfield16:
					field.Value = _reader.ReadUInt16();
					break;
				case BitfieldType.Bitfield32:
					field.Value = _reader.ReadUInt32();
					break;
			}
		}
예제 #6
0
        public void VisitBitfield(BitfieldData field)
        {
            SeekToOffset(field.Offset);
            switch (field.Type)
            {
            case BitfieldType.Bitfield8:
                field.Value = _reader.ReadByte();
                break;

            case BitfieldType.Bitfield16:
                field.Value = _reader.ReadUInt16();
                break;

            case BitfieldType.Bitfield32:
                field.Value = _reader.ReadUInt32();
                break;
            }
        }
예제 #7
0
        public void VisitBitfield(BitfieldData field)
        {
            SeekToOffset(field.Offset);
            switch (field.Type)
            {
                case BitfieldType.Bitfield8:
                    _writer.WriteByte((byte)field.Value);
                    break;

                case BitfieldType.Bitfield16:
                    _writer.WriteUInt16((ushort)field.Value);
                    break;

                case BitfieldType.Bitfield32:
                    _writer.WriteUInt32(field.Value);
                    break;
            }
        }
예제 #8
0
        public void VisitBitfield(BitfieldData field)
        {
            SeekToOffset(field.Offset);
            switch (field.Type)
            {
            case BitfieldType.Bitfield8:
                _writer.WriteByte((byte)field.Value);
                break;

            case BitfieldType.Bitfield16:
                _writer.WriteUInt16((ushort)field.Value);
                break;

            case BitfieldType.Bitfield32:
                _writer.WriteUInt32(field.Value);
                break;
            }
        }
예제 #9
0
 public void VisitBitfield(BitfieldData field)
 {
     FilterString(field, field.Name);
 }
예제 #10
0
 public void VisitBitfield(BitfieldData field)
 {
 }
예제 #11
0
 public void VisitBitfield(BitfieldData field)
 {
     AddWidth(_bitfieldControl.Width);
 }
예제 #12
0
 private bool EnterBitfield(BitfieldType type, string name, uint offset, bool visible, uint pluginLine)
 {
     if (visible || _showInvisibles)
     {
         _currentBitfield = new BitfieldData(name, offset, 0, type, pluginLine);
         return true;
     }
     return false;
 }
예제 #13
0
        public void LeaveBitfield()
        {
            if (_currentBitfield == null)
                throw new InvalidOperationException("Cannot leave a bitfield if one isn't active");

            AddValue(_currentBitfield);
            _currentBitfield = null;
        }
예제 #14
0
 public void VisitBitfield(BitfieldData field)
 {
     AddWidth(_bitfieldControl.Width);
 }
예제 #15
0
 public BitData(BitfieldData parent, string name, int index)
 {
     _parent = parent;
     _name   = name;
     _mask   = 1U << index;
 }
예제 #16
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="QuickCheckCommand" /> class.
 /// </summary>
 /// <param name="data">The biefield.</param>
 /// <param name="check">
 ///     If set to <c>true</c>, the command will check all bits in the field, otherwise it will uncheck all
 ///     bits in the field.
 /// </param>
 public QuickCheckCommand(BitfieldData data, bool check)
 {
     _data  = data;
     _check = check;
 }
예제 #17
0
			/// <summary>
			///     Initializes a new instance of the <see cref="QuickCheckCommand" /> class.
			/// </summary>
			/// <param name="data">The biefield.</param>
			/// <param name="check">
			///     If set to <c>true</c>, the command will check all bits in the field, otherwise it will uncheck all
			///     bits in the field.
			/// </param>
			public QuickCheckCommand(BitfieldData data, bool check)
			{
				_data = data;
				_check = check;
			}
예제 #18
0
 public void VisitBitfield(BitfieldData field)
 {
     FilterString(field, field.Name);
 }
예제 #19
0
 public BitData(BitfieldData parent, string name, int index)
 {
     _parent = parent;
     _name = name;
     _mask = 1U << index;
 }
예제 #20
0
 public override MetaField CloneValue()
 {
     BitfieldData result = new BitfieldData(Name, Offset, _type, base.PluginLine);
     foreach (KeyValuePair<int, BitData> bit in _bits)
         result.DefineBit(bit.Key, bit.Value.Name);
     result.Value = _value;
     return result;
 }
예제 #21
0
 public void VisitBitfield(BitfieldData field)
 {
 }