public Segment(Segment seg) { CopyrightCode = seg.CopyrightCode; WhereCode = seg.WhereCode; ExtraProperties = seg.ExtraProperties; Copyright = seg.Copyright; }
public Segment(CopyrightCodes cc, WhereCodes wc, string txt, UInt16 extra = 0) { CopyrightCode = cc; WhereCode = wc; ExtraProperties = extra; Copyright = txt; }
public Segment() { CopyrightCode = CopyrightCodes.CopyrightInformation; WhereCode = WhereCodes.ProductInformation; ExtraProperties = 0; Copyright = ""; }
public void Read(BinaryReaderWriter br) { byte b = br.ReadByte(); CopyrightCode = CopyrightCodes.Unknown; try { CopyrightCode = (CopyrightCodes)b; } catch { } b = br.ReadByte(); WhereCode = WhereCodes.Unknown; try { WhereCode = (WhereCodes)b; } catch { } ExtraProperties = br.Read2AsUShort(); Copyright = br.ReadString(); }