80 references to SizeOf
GenerateDocumentationAndConfigFiles (8)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (7)
23return Unsafe.SizeOf<T>() switch 40_ => InlineCalculateSegmentSize(Unsafe.SizeOf<T>()), 50return Unsafe.SizeOf<T>() switch 67_ => InlineCalculateSegmentShift(Unsafe.SizeOf<T>()), 77return Unsafe.SizeOf<T>() switch 94_ => InlineCalculateOffsetMask(Unsafe.SizeOf<T>()), 175return System.Numerics.BitOperations.Log2((uint)((Threshold / elementSize) - (2 * Unsafe.SizeOf<object>() + 8)));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\Json\EnumConverter.cs (4)
86if (Unsafe.SizeOf<int>() == Unsafe.SizeOf<TEnum>()) 98if (Unsafe.SizeOf<int>() == Unsafe.SizeOf<TEnum>())
Microsoft.Build (8)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\SegmentedArrayHelper.cs (7)
23return Unsafe.SizeOf<T>() switch 40_ => InlineCalculateSegmentSize(Unsafe.SizeOf<T>()), 50return Unsafe.SizeOf<T>() switch 67_ => InlineCalculateSegmentShift(Unsafe.SizeOf<T>()), 77return Unsafe.SizeOf<T>() switch 94_ => InlineCalculateOffsetMask(Unsafe.SizeOf<T>()), 175return System.Numerics.BitOperations.Log2((uint)((Threshold / elementSize) - (2 * Unsafe.SizeOf<object>() + 8)));
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.CodeAnalysis (8)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (7)
23return Unsafe.SizeOf<T>() switch 40_ => InlineCalculateSegmentSize(Unsafe.SizeOf<T>()), 50return Unsafe.SizeOf<T>() switch 67_ => InlineCalculateSegmentShift(Unsafe.SizeOf<T>()), 77return Unsafe.SizeOf<T>() switch 94_ => InlineCalculateOffsetMask(Unsafe.SizeOf<T>()), 175return System.Numerics.BitOperations.Log2((uint)((Threshold / elementSize) - (2 * Unsafe.SizeOf<object>() + 8)));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (4)
23return Unsafe.SizeOf<T>() switch 50return Unsafe.SizeOf<T>() switch 77return Unsafe.SizeOf<T>() switch 200public static readonly int SegmentSize = CalculateSegmentSize(Unsafe.SizeOf<T>());
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (4)
23return Unsafe.SizeOf<T>() switch 50return Unsafe.SizeOf<T>() switch 77return Unsafe.SizeOf<T>() switch 200public static readonly int SegmentSize = CalculateSegmentSize(Unsafe.SizeOf<T>());
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (4)
23return Unsafe.SizeOf<T>() switch 50return Unsafe.SizeOf<T>() switch 77return Unsafe.SizeOf<T>() switch 200public static readonly int SegmentSize = CalculateSegmentSize(Unsafe.SizeOf<T>());
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.CodeAnalysis.Extensions.Package (5)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (4)
23return Unsafe.SizeOf<T>() switch 50return Unsafe.SizeOf<T>() switch 77return Unsafe.SizeOf<T>() switch 200public static readonly int SegmentSize = CalculateSegmentSize(Unsafe.SizeOf<T>());
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (4)
23return Unsafe.SizeOf<T>() switch 50return Unsafe.SizeOf<T>() switch 77return Unsafe.SizeOf<T>() switch 200public static readonly int SegmentSize = CalculateSegmentSize(Unsafe.SizeOf<T>());
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.CodeAnalysis.Workspaces (8)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (7)
23return Unsafe.SizeOf<T>() switch 40_ => InlineCalculateSegmentSize(Unsafe.SizeOf<T>()), 50return Unsafe.SizeOf<T>() switch 67_ => InlineCalculateSegmentShift(Unsafe.SizeOf<T>()), 77return Unsafe.SizeOf<T>() switch 94_ => InlineCalculateOffsetMask(Unsafe.SizeOf<T>()), 175return System.Numerics.BitOperations.Log2((uint)((Threshold / elementSize) - (2 * Unsafe.SizeOf<object>() + 8)));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Microsoft.Data.Analysis (3)
DataFrameColumns\StringDataFrameColumn.cs (1)
21public static int MaxCapacity = ArrayUtility.ArrayMaxSize / Unsafe.SizeOf<IntPtr>(); // Max Size in bytes / size of pointer (8 bytes on x64)
DataFrameColumns\VBufferDataFrameColumn.cs (1)
20public static int MaxCapacity = ArrayUtility.ArrayMaxSize / Unsafe.SizeOf<VBuffer<T>>();
ReadOnlyDataFrameBuffer.cs (1)
35protected static int Size = Unsafe.SizeOf<T>();
Microsoft.DotNet.Build.Tasks.Installers (1)
src\RpmHeader.cs (1)
356Offset = -(Entries.Count + 1) * Unsafe.SizeOf<IndexEntry>(),
Microsoft.Extensions.Compliance.Abstractions (1)
src\Shared\RentedSpan\RentedSpan.cs (1)
54var size = Unsafe.SizeOf<T>() * length;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\RentedSpan\RentedSpan.cs (1)
54var size = Unsafe.SizeOf<T>() * length;
Microsoft.Extensions.Telemetry (2)
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (1)
18private static readonly int _serializedLogRecordSize = Unsafe.SizeOf<SerializedLogRecord>();
src\Shared\RentedSpan\RentedSpan.cs (1)
54var size = Unsafe.SizeOf<T>() * length;
Microsoft.Private.Windows.Core (2)
System\Value.cs (2)
670Debug.Assert(Unsafe.SizeOf<T>() <= sizeof(ulong)); 914int size = Unsafe.SizeOf<T>();
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Internal\SegmentedArrayHelper.cs (4)
23return Unsafe.SizeOf<T>() switch 50return Unsafe.SizeOf<T>() switch 77return Unsafe.SizeOf<T>() switch 200public static readonly int SegmentSize = CalculateSegmentSize(Unsafe.SizeOf<T>());
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
28/// <para>The segment size is calculated according to <see cref="Unsafe.SizeOf{T}"/>, performs the IL operation
Shared (2)
LogBuffering\SerializedLogRecordFactory.cs (1)
18private static readonly int _serializedLogRecordSize = Unsafe.SizeOf<SerializedLogRecord>();
RentedSpan\RentedSpan.cs (1)
54var size = Unsafe.SizeOf<T>() * length;
System.Private.Windows.Core (2)
System\Value.cs (2)
670Debug.Assert(Unsafe.SizeOf<T>() <= sizeof(ulong)); 914int size = Unsafe.SizeOf<T>();