本文整理汇总了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);
}
示例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);
}
}
示例3: Serialize
public override void Serialize(IFile a_File)
{
a_File.Write<short>(Version);
if (Version == 2)
a_File.Write<int>(i0);
}
示例4: WriteDeviceState
public void WriteDeviceState(IFile stateFile)
{
stateFile.Write(_bits);
stateFile.Write(_bitCount);
stateFile.Write(_emptyMultiplier);
stateFile.Write(_multiplierData);
}
示例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);
}
}
}
示例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);
}
示例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);
}
示例8: SaveFile
public void SaveFile(IFile file)
{
file.Write(_dic);
}