本文整理汇总了C#中BinaryReaderEx.ReadInt64方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryReaderEx.ReadInt64方法的具体用法?C# BinaryReaderEx.ReadInt64怎么用?C# BinaryReaderEx.ReadInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BinaryReaderEx
的用法示例。
在下文中一共展示了BinaryReaderEx.ReadInt64方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadHeader
private void LoadHeader(BinaryReaderEx reader)
{
this.startHeaderOffset = reader.BaseStream.Position;
this.SscfHeader = new SscfHeader();
this.SscfHeader.Unknown0 = reader.ReadInt16();
this.SscfHeader.NumTracks = reader.ReadInt16();
this.SscfHeader.NumWaves = reader.ReadInt16();
this.SscfHeader.Unknown1 = reader.ReadInt16();
this.SscfHeader.OffsetA = reader.ReadInt32();
this.SscfHeader.OffsetB = reader.ReadInt32();
this.SscfHeader.OffsetC = reader.ReadInt64();
this.SscfHeader.OffsetD = reader.ReadInt64();
this.SscfHeader.OffsetE = reader.ReadInt64();
this.SscfHeader.Unused = reader.ReadInt64();
}
示例2: LoadSection
public virtual void LoadSection(BinaryReaderEx reader)
{
this.SectionStart = reader.BaseStream.Position;
this.SectionHeader = new SectionHeader();
this.SectionHeader.Magic = reader.ReadInt64();
this.SectionHeader.Version = reader.ReadInt32();
this.SectionHeader.Unknown2 = reader.ReadInt32();
this.SectionHeader.SectionLength = reader.ReadInt32();
this.SectionHeader.Junk = reader.ReadBytes(28);
}