private void Parse(Stream s) { BinaryReader r = new BinaryReader(s); this.contextVersion = r.ReadUInt32(); this.publicKeyCount = r.ReadUInt32(); this.externalKeyCount = r.ReadUInt32(); this.delayLoadKeyCount = r.ReadUInt32(); this.objectCount = r.ReadUInt32(); this.publicKey = new TGIBlock[publicKeyCount]; for (int i = 0; i < publicKeyCount; i++) { this.publicKey[i] = new TGIBlock(recommendedApiVersion, OnResourceChanged, "ITG", s); } this.externalKey = new TGIBlock[externalKeyCount]; for (int i = 0; i < externalKeyCount; i++) { this.externalKey[i] = new TGIBlock(recommendedApiVersion, OnResourceChanged, "ITG", s); } this.delayLoadKey = new TGIBlock[delayLoadKeyCount]; for (int i = 0; i < delayLoadKeyCount; i++) { this.delayLoadKey[i] = new TGIBlock(recommendedApiVersion, OnResourceChanged, "ITG", s); } this.objectPosition = r.ReadUInt32(); this.objectLength = r.ReadUInt32(); this.objectVersion = r.ReadUInt32(); this.referenceBlockList = new ReferenceBlockList(OnResourceChanged, s); }
private void Parse(Stream s) { BinaryReader r = new BinaryReader(s); this.unknownHeader = new DataBlobHandler(recommendedApiVersion, OnResourceChanged, 20, s); this.currentInstance = new TGIBlock(recommendedApiVersion, OnResourceChanged, "ITG", s); this.unknown1 = r.ReadUInt32(); this.unknown2 = r.ReadUInt32(); this.unknown3 = r.ReadUInt32(); this.referenceBlockList = new ReferenceBlockList(OnResourceChanged, s); }