protected SubrecordBase(SubrecordBase src, int optional, int repeat) { if (src.name.StartsWith("&#x")) { string[] val = src.name.Split(new[] {';'}, 2, StringSplitOptions.None); var c = (char) int.Parse(val[0].Substring(3), NumberStyles.HexNumber, null); name = c + val[1]; } else name = src.name; desc = src.desc; this.optional = optional; this.repeat = repeat; }
protected SubrecordBase(SubrecordBase src, int optional, int repeat) { if (src.name.StartsWith("&#x")) { string[] val = src.name.Split(new[] { ';' }, 2, StringSplitOptions.None); var c = (char)int.Parse(val[0].Substring(3), NumberStyles.HexNumber, null); name = c + val[1]; } else { name = src.name; } desc = src.desc; this.optional = optional; this.repeat = repeat; }
private RecordStructure(RecordsRecord rec, SubrecordBase[] subrecordTree, SubrecordStructure[] subrecords) { name = rec.name; description = rec.desc; this.subrecordTree = subrecordTree; this.subrecords = subrecords; }
public SubrecordGroup(Group node, SubrecordBase[] items) : base(node) { elements = items; }
public LoopContext(int start, SubrecordBase[] sss) { idx = start; ssidx = 0; this.sss = sss; matches = 0; }