public override void Parse(ActionParser parser) { if (parser.PreSix) { Type = parser.ReadFourByteString(); Value = parser.ReadFourByteString(); } else { Type = parser.ReadTokenOrString(); Value = parser.ReadTokenOrString(); } }
public override void Parse(ActionParser parser) { int nr1 = parser.ReadInt32(); string txt = parser.ReadFourByteString(); if (txt == "txtu") { int nr2 = parser.ReadByte(); int length = parser.ReadInt32(); for (int i = 0; i < 2; i++) { parser.ReadByte(); } Path = parser.ReadUnicodeString(length); parser.ReadByte(); } else { parser.ReadBytes(9); Path = parser.ReadString(); parser.ReadBytes(255 - Path.Length); } }
public override void Parse(ActionParser parser) { int nr1 = parser.ReadInt32(); string txt = parser.ReadFourByteString(); if (txt == "txtu") { int nr2 = parser.ReadByte(); int length = parser.ReadInt32(); for (int i = 0; i < 2; i++) parser.ReadByte(); Path = parser.ReadUnicodeString(length); parser.ReadByte(); } else { parser.ReadBytes(9); Path = parser.ReadString(); parser.ReadBytes(255 - Path.Length); } }
public override void Parse(ActionParser parser) { if (_hasUnits) { Units = parser.ReadFourByteString(); } Value = parser.ReadDouble(); }
public override void Parse(ActionParser parser) { int number = parser.ReadInt32(); for (int i = 0; i < number; i++) { ReferenceType referenceType = null; string type = parser.ReadFourByteString(); switch (type) { case "Clss": referenceType = new ClassType(); break; case "Enmr": referenceType = new EnmrType(); break; case "indx": referenceType = new IndexType(); break; case "name": referenceType = new NameType(); break; case "prop": referenceType = new PropertyType(); break; case "rele": referenceType = new ReleType(); break; default: Console.WriteLine("ReferenceParameter: type {0} unknown!", type); break; } if (referenceType != null) { referenceType.Parse(parser); Set.Add(referenceType); } } }
public override void Parse(ActionParser parser) { int number = parser.ReadInt32(); for (int i = 0; i < number; i++) { ReferenceType referenceType = null; string type = parser.ReadFourByteString(); switch (type) { case "Clss": referenceType = new ClassType(); break; case "Enmr": referenceType = new EnmrType(); break; case "indx": referenceType = new IndexType(); break; case "name": referenceType = new NameType(); break; case "prop": referenceType = new PropertyType(); break; case "rele": referenceType = new ReleType(); break; default: Console.WriteLine("ReferenceParameter: type {0} unknown!", type); break; } if (referenceType != null) { referenceType.Parse(parser); _set.Add(referenceType); } } }
public override void Parse(ActionParser parser) { int number = parser.ReadInt32(); DebugOutput.Dump("number: " + number); for (int i = 0; i < number; i++) { string type = parser.ReadFourByteString(); DebugOutput.Dump("type: " + type); Parameter parameter = null; switch (type) { case "Objc": parameter = new ObjcParameter(); break; case "long": parameter = new LongParameter(); break; case "obj": parameter = new ReferenceParameter(); break; default: Console.WriteLine("ReadVlLs: type {0} unknown!", type); return; } if (parameter != null) { DebugOutput.Level++; parameter.Parse(parser); DebugOutput.Level--; Set.Add(parameter); } } }
public override void Parse(ActionParser parser) { if (parser.PreSix) { _classID2 = parser.ReadFourByteString(); } else { _classID = parser.ReadUnicodeString(); DebugOutput.Dump("ClassID: " + _classID); _classID2 = parser.ReadTokenOrString(); } DebugOutput.Dump("ClassID2: " + _classID2); int numberOfItems = parser.ReadInt32(); DebugOutput.Dump("NumberOfItems: " + numberOfItems); DebugOutput.Level++; _children.Parse(parser, numberOfItems); DebugOutput.Level--; }
public override void Parse(ActionParser parser) { if (parser.PreSix) { _classID2 = parser.ReadTokenOrString(); DebugOutput.Dump("ClassID2: " + _classID2); int numberOfItems = parser.ReadInt32(); DebugOutput.Dump("NumberOfItems: " + numberOfItems); } else { int numberOfItems = parser.ReadInt32(); DebugOutput.Dump("NumberOfItems: " + numberOfItems); _classID = parser.ReadUnicodeString(); DebugOutput.Dump("ClassID: " + _classID); _classID2 = parser.ReadTokenOrString(); DebugOutput.Dump("ClassID2: " + _classID2); } int numberOfFields = parser.ReadInt32(); DebugOutput.Dump("NumberOfFields: " + numberOfFields); for (int i = 0; i < numberOfFields; i++) { string key = parser.ReadTokenOrString(); string type = parser.ReadFourByteString(); _units = parser.ReadFourByteString(); DebugOutput.Dump("key: {0} ({1}) {2}", key, type, _units); int numberOfItems = parser.ReadInt32(); DebugOutput.Dump("NumberOfItems2: " + numberOfItems); switch (type) { case "UnFl": for (int j = 0; j < numberOfItems; j++) { double val = parser.ReadDouble(); Coordinate <double> c; if (i == 0) { c = new Coordinate <double>(); _value.Add(c); c.X = val; } else { _value[j].Y = val; } } break; default: Console.WriteLine("ObAr:Unknown type: " + type); break; } } }
public override void Parse(ActionParser parser) { int number = parser.ReadInt32(); DebugOutput.Dump("number: " + number); for (int i = 0; i < number; i++) { string type = parser.ReadFourByteString(); DebugOutput.Dump("type: " + type); Parameter parameter = null; switch (type) { case "Objc": parameter = new ObjcParameter(); break; case "long": parameter = new LongParameter(); break; case "obj": parameter = new ReferenceParameter(); break; default: Console.WriteLine("ReadVlLs: type {0} unknown!", type); return; } if (parameter != null) { DebugOutput.Level++; parameter.Parse(parser); DebugOutput.Level--; _set.Add(parameter); } } }
public override void Parse(ActionParser parser) { if (parser.PreSix) { _classID2 = parser.ReadTokenOrString(); DebugOutput.Dump("ClassID2: " + _classID2); int numberOfItems = parser.ReadInt32(); DebugOutput.Dump("NumberOfItems: " + numberOfItems); } else { int numberOfItems = parser.ReadInt32(); DebugOutput.Dump("NumberOfItems: " + numberOfItems); _classID = parser.ReadUnicodeString(); DebugOutput.Dump("ClassID: " + _classID); _classID2 = parser.ReadTokenOrString(); DebugOutput.Dump("ClassID2: " + _classID2); } int numberOfFields = parser.ReadInt32(); DebugOutput.Dump("NumberOfFields: " + numberOfFields); for (int i = 0; i < numberOfFields; i++) { string key = parser.ReadTokenOrString(); string type = parser.ReadFourByteString(); _units = parser.ReadFourByteString(); DebugOutput.Dump("key: {0} ({1}) {2}", key, type, _units); int numberOfItems = parser.ReadInt32(); DebugOutput.Dump("NumberOfItems2: " + numberOfItems); switch (type) { case "UnFl": for (int j = 0; j < numberOfItems; j++) { double val = parser.ReadDouble(); Coordinate<double> c; if (i == 0) { c = new Coordinate<double>(); _value.Add(c); c.X = val; } else { _value[j].Y = val; } } break; default: Console.WriteLine("ObAr:Unknown type: " + type); break; } } }