本文整理汇总了C#中Blamite.IO.FileSegmentGroup.ContainsPointer方法的典型用法代码示例。如果您正苦于以下问题:C# FileSegmentGroup.ContainsPointer方法的具体用法?C# FileSegmentGroup.ContainsPointer怎么用?C# FileSegmentGroup.ContainsPointer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Blamite.IO.FileSegmentGroup
的用法示例。
在下文中一共展示了FileSegmentGroup.ContainsPointer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadReflexive
public static StructureValueCollection[] ReadReflexive(IReader reader, int count, uint address, StructureLayout entryLayout, FileSegmentGroup metaArea)
{
if (entryLayout.Size == 0)
throw new ArgumentException("The entry layout must have a size associated with it.");
// Handle null pointers
if (count <= 0 || !metaArea.ContainsPointer(address))
return new StructureValueCollection[0];
// Convert the address to an offset and seek to it
int offset = metaArea.PointerToOffset(address);
reader.SeekTo(offset);
// Read the entries
StructureValueCollection[] result = new StructureValueCollection[count];
for (int i = 0; i < count; i++)
result[i] = StructureReader.ReadStructure(reader, entryLayout);
return result;
}