当前位置: 首页>>代码示例>>C#>>正文


C# BlamLib.Write方法代码示例

本文整理汇总了C#中BlamLib.Write方法的典型用法代码示例。如果您正苦于以下问题:C# BlamLib.Write方法的具体用法?C# BlamLib.Write怎么用?C# BlamLib.Write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BlamLib的用法示例。


在下文中一共展示了BlamLib.Write方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Write

			public void Write(BlamLib.IO.EndianWriter s)
			{
				if(nullBuffer == null)
					nullBuffer = new byte[ByteCount];

				s.Write(nullBuffer);
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:7,代码来源:DeclarationTypes.cs

示例2: Write

			public override void Write(BlamLib.IO.EndianWriter s)
			{
				base.Write(s);

				s.Write(CampaignId);
				s.Write(Unknown0004);
				Names.Write(s);
				Descriptions.Write(s);
				foreach (int level in LevelIds) s.Write(level);
				s.Write(Unknown1308);
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:11,代码来源:BLF.cs

示例3: Write

		public void Write(BlamLib.IO.EndianWriter s)
		{
			s.Write(DataOffset);
			s.Write(DataSize);
			s.Write(Name.Length);
			if(Name.Length > 0) s.Write(Name.ToCharArray());
			s.Write((int)Type);
			s.Write(unknown1);
			s.Write(unknown2);
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:10,代码来源:PAK.cs

示例4: Write

			public void Write(BlamLib.IO.EndianWriter s)
			{
				s.Write(ResourceBaseAddress);
				s.Write(DebugSectionSize);
				s.Write(RuntimeBaseAddress);
				s.Write(UnknownBaseAddress);

				foreach (var sec in sections) sec.Write(s);
			}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:9,代码来源:CacheFileGen3rd.cs

示例5: 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

示例6: 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

示例7: Write

		public void Write(BlamLib.IO.EndianWriter s)
		{
			NameId.Write(s);
			s.Write(Offset);
		}
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:5,代码来源:Game.cs

示例8: Write

			public void Write(BlamLib.IO.EndianWriter s)	{ s.Write(Value); }
开发者ID:CodeAsm,项目名称:open-sauce,代码行数:1,代码来源:Util.cs


注:本文中的BlamLib.Write方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。