/// <summary> /// Creates an instance of the data element with the provided value. /// </summary> /// <param name="elem">The value of the element to store in the object file.</param> /// <param name="targetEndianness">The target output endianness.</param> public AsciizDataSegmentElement(string str) : base(str) { m_Metadata = new StringMetadataComponent(ObjectTypeCode.String, str.Length + 1); }
/// <summary> /// Creates an instance of the data element with the provided value. /// </summary> /// <param name="elem">The value of the element to store in the object file.</param> public AsciiDataSegmentElement(string str) { m_Elem = str; m_Metadata = new StringMetadataComponent(ObjectTypeCode.String, m_Elem.Length); }