public override void Read(BinaryReader reader) { base.Read(reader); byte[] body = reader.ReadBytes(this.HeaderOne - 12); unknownOne = BitConverter.ToInt32(body, 0); unknownOne = BitConverter.ToInt32(body, 4); ChildrenCount = BitConverter.ToInt32(body, 8); if (ChildrenCount != 3) { System.Console.WriteLine("Got unexpected child count"); } Datasets = new ArrayList(); for (uint i = 0; i < ChildrenCount; i++) { ImageDataSetRecord rec = new ImageDataSetRecord(); rec.Read(reader); Datasets.Add(rec); } }
public override void Read (BinaryReader reader) { base.Read (reader); byte[] body = reader.ReadBytes (this.HeaderOne - 12); unknownOne = BitConverter.ToInt32 (body, 0); unknownOne = BitConverter.ToInt32 (body, 4); ChildrenCount = BitConverter.ToInt32 (body, 8); if (ChildrenCount != 3) System.Console.WriteLine ("Got unexpected child count"); Datasets = new ArrayList (); for (uint i = 0; i < ChildrenCount; i++) { ImageDataSetRecord rec = new ImageDataSetRecord (); rec.Read (reader); Datasets.Add (rec); } }