private RecordStructure(RecordsRecord rec, SubrecordBase[] subrecordTree, SubrecordStructure[] subrecords) { this.name = rec.name; this.description = rec.desc; this.subrecordTree = subrecordTree; this.subrecords = subrecords; }
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); this.name = c + val[1]; } else { this.name = src.name; } this.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); this.name = c + val[1]; } else { this.name = src.name; } this.desc = src.desc; this.optional = optional; this.repeat = repeat; }
public SubrecordGroup(Group node, SubrecordBase[] items) : base(node) { this.elements = items; }
public LoopContext(int start, SubrecordBase[] sss) { this.idx = start; this.ssidx = 0; this.sss = sss; this.matches = 0; }