當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。