當前位置: 首頁>>代碼示例>>C#>>正文


C# BlamLib.WriteTag方法代碼示例

本文整理匯總了C#中BlamLib.WriteTag方法的典型用法代碼示例。如果您正苦於以下問題:C# BlamLib.WriteTag方法的具體用法?C# BlamLib.WriteTag怎麽用?C# BlamLib.WriteTag使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BlamLib的用法示例。


在下文中一共展示了BlamLib.WriteTag方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Write

		public void Write(BlamLib.IO.EndianWriter s)
		{
			s.WriteTag(Ext);
			int count = Names.Count;
			s.Write(count);
			for (int x = 0; x < count; x++)
			{
				s.Write(Names[x]);
				s.Write(Scenarios[x]);
			}
		}
開發者ID:CodeAsm,項目名稱:open-sauce,代碼行數:11,代碼來源:DelimitorFile.cs

示例2: Write

		public override void Write(BlamLib.IO.EndianWriter s)
		{
			CacheFile cf = s.Owner as CacheFile;
			if (cf.EngineVersion == BlamVersion.Halo2_PC) return;
			if (cf.EngineVersion == BlamVersion.Halo2_Alpha) return;

			s.WriteTag((char[])MiscGroups.head);
			s.Write(8);
			s.Write(fileLength);
			s.Write(0);
			s.Write(offsetToIndex);
			s.Write(indexStreamSize);
			s.Write(tagBufferSize);
			s.Write(0); // needs to be calc'd

			s.Write(new byte[256]);
			s.Write("02.09.27.09809", false);
			s.Write((int)cacheType);
			s.Write(0); // needs to be calc'd
			s.Write(0); // needs to be calc'd
			s.Write(0); s.Write(0);

			s.Write(0); // needs to be calc'd

			s.Write(0); // needs to be calc'd
			s.Write(0); // needs to be calc'd

			s.Write(/*stringIdsBufferAlignedOffset*/0);
			s.Write(stringIdsCount);

			s.Write(stringIdsBufferSize);
			s.Write(stringIdIndicesOffset);
			s.Write(stringIdsBufferOffset);

			s.Write(0); // 4 bools

			s.Write(Filetime.dwHighDateTime);			s.Write(Filetime.dwHighDateTime);

			// mainmenu
			s.Write(SharedFiletimes[0].dwHighDateTime);	s.Write(SharedFiletimes[0].dwHighDateTime);
			// shared
			s.Write(SharedFiletimes[1].dwHighDateTime);	s.Write(SharedFiletimes[1].dwHighDateTime);
			// shared sp
			s.Write(SharedFiletimes[2].dwHighDateTime);	s.Write(SharedFiletimes[2].dwHighDateTime);

			s.Write(name, false);
			s.Write(0);
			s.Write(scenarioPath, 256);
			s.Write(Convert.ToInt32(needsShared));

			s.Write(tagNamesCount);
			s.Write(tagNamesBufferOffset);
			s.Write(tagNamesBufferSize);
			s.Write(tagNameIndicesOffset);

			s.Write(0); // checksum

			s.Write(new byte[1320]);

			s.WriteTag((char[])MiscGroups.foot);
		}
開發者ID:CodeAsm,項目名稱:open-sauce,代碼行數:61,代碼來源:CacheFile.cs


注:本文中的BlamLib.WriteTag方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。