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


C# IFile.Write方法代码示例

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


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

示例1: Serialize

 public override void Serialize(IFile a_File)
 {
     header.DataLength = (uint)tgaData.Length;
     header.PropLength = (uint)Prop.Size;
     header.PropOffset = 40;
     header.RawDateTime = (ulong)DateTime.Now.ToFileTime();
     header.RawFileExt = ".dds0000".ToCharArray();
     header.Ident = "GR01IM04".ToCharArray();
     header.DataOffset = header.PropOffset + header.PropLength;
     header.Serialize(a_File);
     Prop.Serialize(a_File);
     a_File.Write<byte>(tgaData);
 }
开发者ID:hhergeth,项目名称:RisenEditor,代码行数:13,代码来源:ximg.cs

示例2: Serialize

 public override void Serialize(IFile s)
 {
     s.Write<int>(Version);
     s.Write<int>(data.Count != 0 ? 1 : 0);
     if (data.Count > 0)
     {
         s.Write<int>(data.Count);
         foreach (float[] f in data)
             s.Write<float>(f);
     }
 }
开发者ID:hhergeth,项目名称:RisenEditor,代码行数:11,代码来源:xMatClasses.cs

示例3: Serialize

 public override void Serialize(IFile a_File)
 {
     a_File.Write<short>(Version);
     if (Version == 2)
         a_File.Write<int>(i0);
 }
开发者ID:hhergeth,项目名称:RisenEditor,代码行数:6,代码来源:gCInfo.cs

示例4: WriteDeviceState

 public void WriteDeviceState(IFile stateFile)
 {
     stateFile.Write(_bits);
     stateFile.Write(_bitCount);
     stateFile.Write(_emptyMultiplier);
     stateFile.Write(_multiplierData);
 }
开发者ID:RonFields72,项目名称:C64Emulator,代码行数:7,代码来源:VIC.cs

示例5: Serialize

 public override void Serialize(IFile a_File)
 {
     a_File.Write<short>(Version);
     if (Version >= 27)
     {
         a_File.Write<byte>(Enabled);
         if (Enabled != 0)
         {
             a_File.Write<int>(DynamicLayers.Count);
             a_File.Write<int>(Reserved);
             foreach (bCString s in DynamicLayers)
                 s.Serialize(a_File);
         }
     }
 }
开发者ID:hhergeth,项目名称:RisenEditor,代码行数:15,代码来源:GENOME_Files.cs

示例6: Serialize

 public override void Serialize(IFile a_File)
 {
     a_File.Write<short>(Version);
     a_File.Write<int>(data0.Count);
     foreach (bCAccessorPropertyObject b in data0)
         b.Serialize(a_File);
     a_File.Write<int>(data1.Count);
     foreach (bCAccessorPropertyObject b in data1)
         b.Serialize(a_File);
     a_File.Write<int>(data2.Count);
     foreach (bCAccessorPropertyObject b in data2)
         b.Serialize(a_File);
 }
开发者ID:hhergeth,项目名称:RisenEditor,代码行数:13,代码来源:gCCombatSpecies.cs

示例7: Serialize

 public override void Serialize(IFile a_File)
 {
     a_File.Write<char>("GR01SM01".ToCharArray());
     a_File.Write<int>(40);
     a_File.Write<int>(propObj.Size);
     a_File.Write<int>(40 + propObj.Size);
     a_File.Write<int>(dataObj.Size);
     a_File.Write<long>(Time.ToFileTime());
     a_File.Write<char>(".xshmat".ToCharArray());
     a_File.Write<byte>(1);
     propObj.Serialize(a_File);
     dataObj.Serialize(a_File);
 }
开发者ID:hhergeth,项目名称:RisenEditor,代码行数:13,代码来源:XmatLoader.cs

示例8: SaveFile

 public void SaveFile(IFile file)
 {
     file.Write(_dic);
 }
开发者ID:alloyapple,项目名称:Decoration-Beginning-of-Spring,代码行数:4,代码来源:IJson.cs


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