本文整理汇总了C#中System.IO.FileStream.WriteStructVector方法的典型用法代码示例。如果您正苦于以下问题:C# FileStream.WriteStructVector方法的具体用法?C# FileStream.WriteStructVector怎么用?C# FileStream.WriteStructVector使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO.FileStream
的用法示例。
在下文中一共展示了FileStream.WriteStructVector方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: write
public void write(string FileName)
{
FileStream FileStream = new FileStream(FileName, FileMode.OpenOrCreate, FileAccess.Write);
FileStream.WriteStruct(this.header);
if (this.header.revision >= 3)
{
FileStream.WriteStruct(this.headerExtraRevision3);
}
FileStream.WriteStructVector(dimensionTable);
FileStream.WriteStructVector(xAdjustTable);
FileStream.WriteStructVector(yAdjustTable);
FileStream.WriteStructVector(advanceTable);
FileStream.WriteStructVector(packedShadowCharMap);
if (header.revision == 3)
{
FileStream.WriteStructVector(charmapCompressionTable1);
FileStream.WriteStructVector(charmapCompressionTable2);
}
FileStream.WriteStructVector(packedCharMap);
FileStream.WriteStructVector(packedCharPointerTable);
FileStream.WriteBytes(charData);
}
示例2: Write
public void Write(string FileName)
{
var FileStream = new FileStream(FileName, FileMode.OpenOrCreate, FileAccess.Write);
FileStream.WriteStruct(this.Header);
if (this.Header.Revision >= 3)
{
FileStream.WriteStruct(this.HeaderExtraRevision3);
}
FileStream.WriteStructVector(DimensionTable);
FileStream.WriteStructVector(XAdjustTable);
FileStream.WriteStructVector(YAdjustTable);
FileStream.WriteStructVector(AdvanceTable);
FileStream.WriteStructVector(PackedShadowCharMap);
if (Header.Revision == 3)
{
FileStream.WriteStructVector(CharmapCompressionTable1);
FileStream.WriteStructVector(CharmapCompressionTable2);
}
FileStream.WriteStructVector(PackedCharMap);
FileStream.WriteStructVector(PackedCharPointerTable);
FileStream.WriteBytes(CharData);
}