本文整理汇总了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;
}
示例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);
}
}
}
示例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);
}
}
}
示例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;
}
示例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);
}
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
}
示例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;
}
示例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;
}
示例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);
}
}
}
示例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;
}