コード例 #1
0
 internal TypeDescriptionEntries(MemorySnapshotFileReader reader)
 {
     flags = new ArrayEntries <TypeFlags>(reader, EntryType.TypeDescriptions_Flags, ConversionFunctions.ToTypeFlags);
     typeDescriptionName    = new ArrayEntries <string>(reader, EntryType.TypeDescriptions_Name, ConversionFunctions.ToString);
     assembly               = new ArrayEntries <string>(reader, EntryType.TypeDescriptions_Assembly, ConversionFunctions.ToString);
     fieldIndices           = new ArrayEntries <int[]>(reader, EntryType.TypeDescriptions_FieldIndices, ConversionFunctions.ToInt32Array);
     staticFieldBytes       = new ByteArrayEntries(reader, EntryType.TypeDescriptions_StaticFieldBytes);
     baseOrElementTypeIndex = new ArrayEntries <int>(reader, EntryType.TypeDescriptions_BaseOrElementTypeIndex, ConversionFunctions.ToInt32);
     size            = new ArrayEntries <int>(reader, EntryType.TypeDescriptions_Size, ConversionFunctions.ToInt32);
     typeInfoAddress = new ArrayEntries <ulong>(reader, EntryType.TypeDescriptions_TypeInfoAddress, ConversionFunctions.ToUInt64);
     typeIndex       = new ArrayEntries <int>(reader, EntryType.TypeDescriptions_TypeIndex, ConversionFunctions.ToInt32);
 }
コード例 #2
0
 internal ManagedMemorySectionEntries(MemorySnapshotFileReader reader, EntryType entryTypeBase)
 {
     startAddress = new ArrayEntries <ulong>(reader, (EntryType)(entryTypeBase + 0), ConversionFunctions.ToUInt64);
     bytes        = new ByteArrayEntries(reader, (EntryType)(entryTypeBase + 1));
 }