2 writes to Size
Microsoft.Diagnostics.DataContractReader (2)
ContractDescriptorTarget.cs (2)
208
types[DataType.pointer.ToString()] = new TypeInfo {
Size
= (uint)_config.PointerSize };
243
Target.TypeInfo typeInfo = new() {
Size
= type.Size, Fields = fieldInfos };
73 references to Size
Microsoft.Diagnostics.DataContractReader (4)
ContractDescriptorTarget.cs (4)
602
if (codePointerTypeInfo.
Size
is sizeof(uint))
606
else if (codePointerTypeInfo.
Size
is sizeof(ulong))
616
if (codePointerTypeInfo.
Size
is sizeof(uint))
624
else if (codePointerTypeInfo.
Size
is sizeof(ulong))
Microsoft.Diagnostics.DataContractReader.Contracts (65)
Contracts\AuxiliarySymbols_1.cs (1)
27
uint entrySize = typeInfo.
Size
!.Value;
Contracts\BuiltInCOM_1.cs (1)
108
ulong comMethodTableSize = _target.GetTypeInfo(DataType.ComMethodTable).
Size
!.Value;
Contracts\CodeNotifications_1.cs (1)
211
uint entrySize = (uint)(jitNotifType.
Size
Contracts\ComWrappers_1.cs (2)
90
uint dispatchSize = dispatchTypeInfo.
Size
!.Value;
109
uint entrySize = entryTypeInfo.
Size
!.Value;
Contracts\DebugInfo\DebugInfo_1.cs (1)
62
if (_target.GetTypeInfo(DataType.PatchpointInfo).
Size
is not uint patchpointSize)
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
514
uint clauseSize = _target.GetTypeInfo(clauseType).
Size
!.Value;
Contracts\ExecutionManager\ExecutionManagerCore.EEJitManager.cs (1)
218
endAddr = startAddr + numEHInfos.Value * Target.GetTypeInfo(DataType.EEExceptionClause).
Size
!.Value;
Contracts\ExecutionManager\ExecutionManagerCore.InterpreterJitManager.cs (1)
125
endAddr = startAddr + numEHInfos.Value * Target.GetTypeInfo(DataType.EEExceptionClause).
Size
!.Value;
Contracts\ExecutionManager\ExecutionManagerCore.ReadyToRunJitManager.cs (2)
291
uint entrySize = Target.GetTypeInfo(DataType.ExceptionLookupTableEntry).
Size
!.Value;
321
uint count = section.Size / Target.GetTypeInfo(DataType.ExceptionLookupTableEntry).
Size
!.Value;
Contracts\ExecutionManager\Helpers\HashMapLookup.cs (1)
38
uint bucketSize = _target.GetTypeInfo(DataType.Bucket).
Size
!.Value;
Contracts\ExecutionManager\Helpers\RuntimeFunctionLookup.cs (1)
19
_runtimeFunctionSize = target.GetTypeInfo(DataType.RuntimeFunction).
Size
!.Value;
Contracts\GC\GC_1.cs (2)
212
uint generationSize = _target.GetTypeInfo(DataType.Generation).
Size
?? throw new InvalidOperationException("Type Generation has no size");
707
regionFreeListSize = _target.GetTypeInfo(DataType.RegionFreeList).
Size
Contracts\Object_1.cs (4)
80
boundsStart = address + (ulong)arrayTypeInfo.
Size
!;
91
ulong dataOffset = typeSystemContract.GetBaseSize(typeHandle) - _target.GetTypeInfo(DataType.ObjectHeader).
Size
!.Value;
110
ulong objectHeaderSize = _target.GetTypeInfo(DataType.ObjectHeader).
Size
!.Value;
136
ulong objectHeaderSize = _target.GetTypeInfo(DataType.ObjectHeader).
Size
!.Value;
Contracts\RuntimeTypeSystem_1.cs (16)
252
baseSize = target.GetTypeInfo(DataType.MethodDesc).
Size
?? throw new InvalidOperationException("MethodDesc type size must be known");
255
baseSize = target.GetTypeInfo(DataType.FCallMethodDesc).
Size
?? throw new InvalidOperationException("FCallMethodDesc type size must be known");
258
baseSize = target.GetTypeInfo(DataType.PInvokeMethodDesc).
Size
?? throw new InvalidOperationException("PInvokeMethodDesc type size must be known");
261
baseSize = target.GetTypeInfo(DataType.EEImplMethodDesc).
Size
?? throw new InvalidOperationException("EEImplMethodDesc type size must be known");
264
baseSize = target.GetTypeInfo(DataType.ArrayMethodDesc).
Size
?? throw new InvalidOperationException("ArrayMethodDesc type size must be known");
267
baseSize = target.GetTypeInfo(DataType.InstantiatedMethodDesc).
Size
?? throw new InvalidOperationException("InstantiatedMethodDesc type size must be known");
270
baseSize = target.GetTypeInfo(DataType.CLRToCOMCallMethodDesc).
Size
?? throw new InvalidOperationException("CLRToCOMCallMethodDesc type size must be known");
273
baseSize = target.GetTypeInfo(DataType.DynamicMethodDesc).
Size
?? throw new InvalidOperationException("DynamicMethodDesc type size must be known");
281
baseSize += target.GetTypeInfo(DataType.NonVtableSlot).
Size
?? throw new InvalidOperationException("NonVtableSlot type size must be known");
284
baseSize += target.GetTypeInfo(DataType.MethodImpl).
Size
?? throw new InvalidOperationException("MethodImpl type size must be known");
287
baseSize += target.GetTypeInfo(DataType.NativeCodeSlot).
Size
?? throw new InvalidOperationException("NativeCodeSlot type size must be known");
290
baseSize += target.GetTypeInfo(DataType.AsyncMethodData).
Size
?? throw new InvalidOperationException("AsyncMethodData type size must be known");
330
ulong typeSize = _target.GetTypeInfo(DataType.MethodDescChunk).
Size
!.Value;
683
TargetPointer dynamicStaticsInfoSize = _target.GetTypeInfo(DataType.DynamicStaticsInfo).
Size
!.Value;
691
TargetPointer threadStaticsInfoSize = _target.GetTypeInfo(DataType.ThreadStaticsInfo).
Size
!.Value;
1579
return new VtableIndirections(_target, methodTableAddress + typeInfo.
Size
!.Value);
Contracts\SHash_1.cs (1)
31
uint entrySize = type.
Size
?? 0;
Contracts\StackWalk\FrameHandling\AMD64FrameHandler.cs (1)
45
uint hijackArgsSize = _target.GetTypeInfo(DataType.HijackArgs).
Size
?? throw new InvalidOperationException("HijackArgs size is not set");
Contracts\StackWalk\FrameHandling\ARM64FrameHandler.cs (1)
34
uint hijackArgsSize = _target.GetTypeInfo(DataType.HijackArgs).
Size
?? throw new InvalidOperationException("HijackArgs size is not set");
Contracts\StackWalk\FrameHandling\ARMFrameHandler.cs (1)
23
uint hijackArgsSize = _target.GetTypeInfo(DataType.HijackArgs).
Size
?? throw new InvalidOperationException("HijackArgs size is not set");
Contracts\StackWalk\FrameHandling\BaseFrameHandler.cs (1)
47
if (_target.GetTypeInfo(DataType.TransitionBlock).
Size
is not uint transitionBlockSize)
Contracts\StackWalk\FrameHandling\LoongArch64FrameHandler.cs (1)
22
uint hijackArgsSize = _target.GetTypeInfo(DataType.HijackArgs).
Size
?? throw new InvalidOperationException("HijackArgs size is not set");
Contracts\StackWalk\FrameHandling\RISCV64FrameHandler.cs (1)
22
uint hijackArgsSize = _target.GetTypeInfo(DataType.HijackArgs).
Size
?? throw new InvalidOperationException("HijackArgs size is not set");
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (2)
19
uint hijackArgsSize = _target.GetTypeInfo(DataType.HijackArgs).
Size
?? throw new InvalidOperationException("HijackArgs size is not set");
30
if (_target.GetTypeInfo(DataType.TailCallFrame).
Size
is not uint tailCallFrameSize)
Contracts\StackWalk\StackWalk_1.cs (1)
879
TargetPointer methodDescPtr = framePtr + _target.GetTypeInfo(DataType.InlinedCallFrame).
Size
Contracts\StressLog.cs (3)
112
uint moduleEntrySize = target.GetTypeInfo(DataType.StressLogModuleDesc).
Size
!.Value;
131
uint stressMsgHeaderSize = target.GetTypeInfo(DataType.StressMsgHeader).
Size
!.Value;
219
ulong chunkSize = target.GetTypeInfo(DataType.StressLogChunk).
Size
!.Value;
Contracts\SyncBlock_1.cs (3)
27
Data.SyncTableEntry ste = _target.ProcessedData.GetOrAdd<Data.SyncTableEntry>(_syncTableEntries + index * _target.GetTypeInfo(DataType.SyncTableEntry).
Size
!.Value);
33
Data.SyncTableEntry ste = _target.ProcessedData.GetOrAdd<Data.SyncTableEntry>(_syncTableEntries + index * _target.GetTypeInfo(DataType.SyncTableEntry).
Size
!.Value);
39
Data.SyncTableEntry ste = _target.ProcessedData.GetOrAdd<Data.SyncTableEntry>(_syncTableEntries + index * _target.GetTypeInfo(DataType.SyncTableEntry).
Size
!.Value);
Data\Array.cs (1)
16
DataPointer = address + type.
Size
!.Value;
Data\ComWrappersVtablePtrs.cs (1)
15
for (int i = 0; i < type.
Size
/ target.PointerSize; i++)
Data\MethodDescChunk.cs (1)
22
FirstMethodDesc = address + type.
Size
!.Value;
Data\Object.cs (1)
17
Data = address + (type.
Size
?? throw new InvalidOperationException("Object size must be known"));
Data\RCW.cs (1)
30
uint entrySize = entryTypeInfo.
Size
!.Value;
Data\ReadyToRunCoreHeader.cs (2)
21
TargetPointer sectionAddress = address + (ulong)(type.
Size
!.Value + i * sectionType.
Size
!.Value);
RuntimeTypeSystemHelpers\MethodDescOptionalSlots.cs (6)
68
return target.GetTypeInfo(type).
Size
?? throw new InvalidOperationException($"size of MethodDesc not known");
95
offset += target.GetTypeInfo(DataType.NonVtableSlot).
Size
!.Value;
98
offset += target.GetTypeInfo(DataType.MethodImpl).
Size
!.Value;
110
offset += target.GetTypeInfo(DataType.NonVtableSlot).
Size
!.Value;
113
offset += target.GetTypeInfo(DataType.MethodImpl).
Size
!.Value;
116
offset += target.GetTypeInfo(DataType.NativeCodeSlot).
Size
!.Value;
RuntimeTypeSystemHelpers\MethodValidation.cs (1)
93
ulong? methodDescChunkSize = _target.GetTypeInfo(DataType.MethodDescChunk).
Size
;
Microsoft.Diagnostics.DataContractReader.Legacy (4)
Dbi\DacDbiImpl.cs (1)
2113
uint objectHeaderSize = (uint)objectHeaderTypeInfo.
Size
!.Value;
SOSDacImpl.cs (1)
1170
data->NextField = fieldDescTargetPtr + _target.GetTypeInfo(DataType.FieldDesc).
Size
!.Value;
TypeNameBuilder.cs (2)
516
uint continuationDataOffset = tnb.Target.GetTypeInfo(DataType.ContinuationObject).
Size
!.Value;
517
uint objHeaderSize = tnb.Target.GetTypeInfo(DataType.ObjectHeader).
Size
!.Value;