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


C# BinaryReader.ReadBlamPointer方法代码示例

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


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

示例1: ReadVertexpointindices

 public virtual GlobalGeometryPointDataIndexBlock[] ReadVertexpointindices(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(GlobalGeometryPointDataIndexBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var vertexPointIndices = new GlobalGeometryPointDataIndexBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             vertexPointIndices[i] = new GlobalGeometryPointDataIndexBlock(binaryReader);
         }
     }
     return vertexPointIndices;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例2: WritePermutations

 public virtual void WritePermutations(BinaryWriter binaryWriter)
 {
     var binaryReader = new BinaryReader(binaryWriter.BaseStream);
     var elementSize = Marshal.SizeOf(typeof(RenderModelPermutationBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     using (binaryWriter.BaseStream.Pin())
     {
         for (int i = 0; i < this.permutations.Length && i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             this.permutations[i].Write(binaryWriter);
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:14,代码来源:RenderModel.cs

示例3: WriteEmptystring

 public virtual void WriteEmptystring(BinaryWriter binaryWriter)
 {
     var binaryReader = new BinaryReader(binaryWriter.BaseStream);
     var elementSize = Marshal.SizeOf(typeof(GlobalGeometryCompressionInfoBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     using (binaryWriter.BaseStream.Pin())
     {
         for (int i = 0; i < this.eMPTYSTRING.Length && i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             this.eMPTYSTRING[i].Write(binaryWriter);
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:14,代码来源:RenderModel.cs

示例4: ReadSectionrenderleaves

 public virtual SectionRenderLeavesBlock[] ReadSectionrenderleaves(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(SectionRenderLeavesBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var sectionRenderLeaves = new SectionRenderLeavesBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             sectionRenderLeaves[i] = new SectionRenderLeavesBlock(binaryReader);
         }
     }
     return sectionRenderLeaves;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例5: WriteFiles

 public virtual void WriteFiles(BinaryWriter binaryWriter)
 {
     var binaryReader = new BinaryReader(binaryWriter.BaseStream);
     var elementSize = Marshal.SizeOf(typeof(TagImportFileBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     using (binaryWriter.BaseStream.Pin())
     {
         for (int i = 0; i < this.files.Length && i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             this.files[i].Write(binaryWriter);
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:14,代码来源:RenderModel.cs

示例6: ReadErrors

 public virtual GlobalErrorReportCategoriesBlock[] ReadErrors(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(GlobalErrorReportCategoriesBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var errors = new GlobalErrorReportCategoriesBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             errors[i] = new GlobalErrorReportCategoriesBlock(binaryReader);
         }
     }
     return errors;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例7: ReadPrtinfo

 public virtual PrtInfoBlock[] ReadPrtinfo(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(PrtInfoBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var pRTInfo = new PrtInfoBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             pRTInfo[i] = new PrtInfoBlock(binaryReader);
         }
     }
     return pRTInfo;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例8: ReadReports

 public virtual ErrorReportsBlock[] ReadReports(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(ErrorReportsBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var reports = new ErrorReportsBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             reports[i] = new ErrorReportsBlock(binaryReader);
         }
     }
     return reports;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例9: ReadNodemapold

 public virtual RenderModelNodeMapBlockOLD[] ReadNodemapold(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(RenderModelNodeMapBlockOLD));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var nodeMapOLD = new RenderModelNodeMapBlockOLD[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             nodeMapOLD[i] = new RenderModelNodeMapBlockOLD(binaryReader);
         }
     }
     return nodeMapOLD;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例10: ReadInvalidsectionpairbits

 public virtual RenderModelInvalidSectionPairsBlock[] ReadInvalidsectionpairbits(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(RenderModelInvalidSectionPairsBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var invalidSectionPairBits = new RenderModelInvalidSectionPairsBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             invalidSectionPairBits[i] = new RenderModelInvalidSectionPairsBlock(binaryReader);
         }
     }
     return invalidSectionPairBits;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例11: WriteInvalidsectionpairbits

 public virtual void WriteInvalidsectionpairbits(BinaryWriter binaryWriter)
 {
     var binaryReader = new BinaryReader(binaryWriter.BaseStream);
     var elementSize = Marshal.SizeOf(typeof(RenderModelInvalidSectionPairsBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     using (binaryWriter.BaseStream.Pin())
     {
         for (int i = 0; i < this.invalidSectionPairBits.Length && i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             this.invalidSectionPairBits[i].Write(binaryWriter);
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:14,代码来源:RenderModel.cs

示例12: ReadCompoundnodes

 public virtual RenderModelCompoundNodeBlock[] ReadCompoundnodes(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(RenderModelCompoundNodeBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var compoundNodes = new RenderModelCompoundNodeBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             compoundNodes[i] = new RenderModelCompoundNodeBlock(binaryReader);
         }
     }
     return compoundNodes;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例13: ReadSectiondata

 public virtual RenderModelSectionDataBlock[] ReadSectiondata(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(RenderModelSectionDataBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var sectionData = new RenderModelSectionDataBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             sectionData[i] = new RenderModelSectionDataBlock(binaryReader);
         }
     }
     return sectionData;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs

示例14: WriteVertexpointindices

 public virtual void WriteVertexpointindices(BinaryWriter binaryWriter)
 {
     var binaryReader = new BinaryReader(binaryWriter.BaseStream);
     var elementSize = Marshal.SizeOf(typeof(GlobalGeometryPointDataIndexBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     using (binaryWriter.BaseStream.Pin())
     {
         for (int i = 0; i < this.vertexPointIndices.Length && i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             this.vertexPointIndices[i].Write(binaryWriter);
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:14,代码来源:RenderModel.cs

示例15: ReadMaterials

 public virtual GlobalGeometryMaterialBlock[] ReadMaterials(BinaryReader binaryReader)
 {
     var elementSize = Marshal.SizeOf(typeof(GlobalGeometryMaterialBlock));
     var blamPointer = binaryReader.ReadBlamPointer(elementSize);
     var materials = new GlobalGeometryMaterialBlock[blamPointer.Count];
     using (binaryReader.BaseStream.Pin())
     {
         for (int i = 0; i < blamPointer.Count; ++i)
         {
             binaryReader.BaseStream.Position = blamPointer[i];
             materials[i] = new GlobalGeometryMaterialBlock(binaryReader);
         }
     }
     return materials;
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:15,代码来源:RenderModel.cs


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