本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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]);
}
}
示例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);
}
示例7: Write
public void Write(BlamLib.IO.EndianWriter s)
{
NameId.Write(s);
s.Write(Offset);
}
示例8: Write
public void Write(BlamLib.IO.EndianWriter s) { s.Write(Value); }