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