示例#1
0
 public Segment(Segment seg)
 {
     CopyrightCode   = seg.CopyrightCode;
     WhereCode       = seg.WhereCode;
     ExtraProperties = seg.ExtraProperties;
     Copyright       = seg.Copyright;
 }
示例#2
0
 public Segment(CopyrightCodes cc, WhereCodes wc, string txt, UInt16 extra = 0)
 {
     CopyrightCode   = cc;
     WhereCode       = wc;
     ExtraProperties = extra;
     Copyright       = txt;
 }
示例#3
0
 public Segment()
 {
     CopyrightCode   = CopyrightCodes.CopyrightInformation;
     WhereCode       = WhereCodes.ProductInformation;
     ExtraProperties = 0;
     Copyright       = "";
 }
示例#4
0
                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();
                }