2 writes to Size
Microsoft.Diagnostics.DataContractReader (2)
ContractDescriptorTarget.cs (2)
213
types[DataType.pointer.ToString()] = new TypeInfo {
Size
= (uint)_config.PointerSize };
248
Target.TypeInfo typeInfo = new() {
Size
= type.Size, Fields = fieldInfos };
80 references to Size
Microsoft.Diagnostics.DataContractReader (4)
ContractDescriptorTarget.cs (4)
614
if (codePointerTypeInfo.
Size
is sizeof(uint))
618
else if (codePointerTypeInfo.
Size
is sizeof(ulong))
628
if (codePointerTypeInfo.
Size
is sizeof(uint))
636
else if (codePointerTypeInfo.
Size
is sizeof(ulong))
Microsoft.Diagnostics.DataContractReader.Contracts (70)
_generated\0\LayoutSet.g.cs (1)
31
if (layout.Get()?.
Size
is uint s)
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)
78
uint dispatchSize = dispatchTypeInfo.
Size
!.Value;
97
uint entrySize = entryTypeInfo.
Size
!.Value;
Contracts\Debugger\Debugger_1.cs (2)
143
uint stride = memoryRangeTypeInfo.
Size
!.Value;
181
uint stride = _target.GetTypeInfo(DataType.MemoryRange).
Size
!.Value;
Contracts\DebugInfo\DebugInfo_1.cs (1)
62
if (_target.GetTypeInfo(DataType.PatchpointInfo).
Size
is not uint patchpointSize)
Contracts\Exception_1.cs (2)
92
ulong elementSize = elementTypeInfo.
Size
!.Value;
94
uint headerSize = _target.GetTypeInfo(DataType.StackTraceArrayHeader).
Size
!.Value;
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
536
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)
292
uint entrySize = Target.GetTypeInfo(DataType.ExceptionLookupTableEntry).
Size
!.Value;
322
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)
224
uint generationSize = _target.GetTypeInfo(DataType.Generation).
Size
?? throw new InvalidOperationException("Type Generation has no size");
804
regionFreeListSize = _target.GetTypeInfo(DataType.RegionFreeList).
Size
Contracts\ManagedTypeSource_1.cs (1)
214
objectSize = objType.
Size
Contracts\Object_1.cs (4)
93
boundsStart = address + (ulong)arrayTypeInfo.
Size
!;
104
ulong dataOffset = typeSystemContract.GetBaseSize(typeHandle) - _target.GetTypeInfo(DataType.ObjectHeader).
Size
!.Value;
123
ulong objectHeaderSize = _target.GetTypeInfo(DataType.ObjectHeader).
Size
!.Value;
149
ulong objectHeaderSize = _target.GetTypeInfo(DataType.ObjectHeader).
Size
!.Value;
Contracts\RuntimeTypeSystem_1.cs (17)
239
baseSize = target.GetTypeInfo(DataType.MethodDesc).
Size
?? throw new InvalidOperationException("MethodDesc type size must be known");
242
baseSize = target.GetTypeInfo(DataType.FCallMethodDesc).
Size
?? throw new InvalidOperationException("FCallMethodDesc type size must be known");
245
baseSize = target.GetTypeInfo(DataType.PInvokeMethodDesc).
Size
?? throw new InvalidOperationException("PInvokeMethodDesc type size must be known");
248
baseSize = target.GetTypeInfo(DataType.EEImplMethodDesc).
Size
?? throw new InvalidOperationException("EEImplMethodDesc type size must be known");
251
baseSize = target.GetTypeInfo(DataType.ArrayMethodDesc).
Size
?? throw new InvalidOperationException("ArrayMethodDesc type size must be known");
254
baseSize = target.GetTypeInfo(DataType.InstantiatedMethodDesc).
Size
?? throw new InvalidOperationException("InstantiatedMethodDesc type size must be known");
257
baseSize = target.GetTypeInfo(DataType.CLRToCOMCallMethodDesc).
Size
?? throw new InvalidOperationException("CLRToCOMCallMethodDesc type size must be known");
260
baseSize = target.GetTypeInfo(DataType.DynamicMethodDesc).
Size
?? throw new InvalidOperationException("DynamicMethodDesc type size must be known");
268
baseSize += target.GetTypeInfo(DataType.NonVtableSlot).
Size
?? throw new InvalidOperationException("NonVtableSlot type size must be known");
271
baseSize += target.GetTypeInfo(DataType.MethodImpl).
Size
?? throw new InvalidOperationException("MethodImpl type size must be known");
274
baseSize += target.GetTypeInfo(DataType.NativeCodeSlot).
Size
?? throw new InvalidOperationException("NativeCodeSlot type size must be known");
277
baseSize += target.GetTypeInfo(DataType.AsyncMethodData).
Size
?? throw new InvalidOperationException("AsyncMethodData type size must be known");
317
ulong typeSize = _target.GetTypeInfo(DataType.MethodDescChunk).
Size
!.Value;
874
uint fieldDescSize = _target.GetTypeInfo(DataType.FieldDesc).
Size
!.Value;
898
TargetPointer dynamicStaticsInfoSize = _target.GetTypeInfo(DataType.DynamicStaticsInfo).
Size
!.Value;
906
TargetPointer threadStaticsInfoSize = _target.GetTypeInfo(DataType.ThreadStaticsInfo).
Size
!.Value;
1768
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");
66
if (_target.GetTypeInfo(DataType.TailCallFrame).
Size
is not uint tailCallFrameSize)
Contracts\StackWalk\StackWalk_1.cs (1)
1114
TargetPointer methodDescPtr = framePtr + _target.GetTypeInfo(DataType.InlinedCallFrame).
Size
Contracts\StressLog.cs (4)
109
uint moduleEntrySize = target.GetTypeInfo(DataType.StressLogModuleDesc).
Size
!.Value;
128
uint stressMsgHeaderSize = target.GetTypeInfo(DataType.StressMsgHeader).
Size
!.Value;
218
ulong chunkSize = target.GetTypeInfo(DataType.StressLogChunk).
Size
!.Value;
233
ulong chunkSize = target.GetTypeInfo(DataType.StressLogChunk).
Size
!.Value;
Contracts\SyncBlock_1.cs (3)
19
Data.SyncTableEntry ste = _target.ProcessedData.GetOrAdd<Data.SyncTableEntry>(_syncTableEntries + index * _target.GetTypeInfo(DataType.SyncTableEntry).
Size
!.Value);
25
Data.SyncTableEntry ste = _target.ProcessedData.GetOrAdd<Data.SyncTableEntry>(_syncTableEntries + index * _target.GetTypeInfo(DataType.SyncTableEntry).
Size
!.Value);
31
Data.SyncTableEntry ste = _target.ProcessedData.GetOrAdd<Data.SyncTableEntry>(_syncTableEntries + index * _target.GetTypeInfo(DataType.SyncTableEntry).
Size
!.Value);
Data\ComWrappersVtablePtrs.cs (1)
18
int count = (int)(type.
Size
!.Value / (uint)target.PointerSize);
Data\RCW.cs (1)
34
uint entrySize = entryTypeInfo.
Size
!.Value;
Data\ReadyToRunCoreHeader.cs (2)
24
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 (6)
Dbi\DacDbiImpl.cs (3)
3694
*pObjOffsetToVars = (uint)_target.GetTypeInfo(DataType.Object).
Size
!.Value;
4584
uint firstFieldOffset = isReferenceType ? _target.GetTypeInfo(DataType.Object).
Size
!.Value : 0;
4783
uint objectHeaderSize = (uint)objectHeaderTypeInfo.
Size
!.Value;
SOSDacImpl.cs (1)
1149
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;