/// <summary> /// Delete the value of this data constant /// </summary> public void RemoveDataValue() { initVal = null; flags &= NoFieldRVA; }
/*-------------------- Constructors ---------------------------------*/ internal FieldRVA(FieldDef field, DataConstant data) { this.field = field; this.data = data; tabIx = MDTable.FieldRVA; }
/// <summary> /// Add an initial value for this field (at dataLabel) (.data) /// </summary> /// <param name="val">the value for the field</param> public void AddDataValue(DataConstant val) { flags |= HasFieldRVA; initVal = val; }
/*-------------------- Constructors ---------------------------------*/ public AddressConstant(DataConstant dConst) { data = dConst; size = 4; type = ElementType.TypedByRef; }
internal void AddInitData(DataConstant cVal) { if (sdata == null) { sdata = new Section(FileImage.sdataName,0xC0000040); // IMAGE_SCN_CNT INITIALIZED_DATA, READ, WRITE data = new ArrayList(); } data.Add(cVal); //cVal.DataOffset = sdata.Tide(); //sdata.IncTide(cVal.GetSize()); }
internal void AddData(DataConstant cVal) { output.AddInitData(cVal); }
/*-------------------- Constructors ---------------------------------*/ public RepeatedConstant(DataConstant dConst, int repeatCount) { data = dConst; repCount = (uint)repeatCount; type = ElementType.SZArray; size = data.GetSize() * repCount; }