168 references to ReadUnaligned
GenerateDocumentationAndConfigFiles (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Metrics (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Metrics.Legacy (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis (4)
Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.Analyzers (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.CodeStyle (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Microsoft.CodeAnalysis.Workspaces (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Roslyn.Diagnostics.Analyzers (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
System.IO.Hashing (4)
System\IO\Hashing\XxHashShared.cs (4)
785Unsafe.ReadUnaligned<uint>(data) : 786BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 791Unsafe.ReadUnaligned<ulong>(data) : 792BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
System.Private.CoreLib (101)
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
290uint tempValue = Unsafe.ReadUnaligned<uint>(pSource + currIdx);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (7)
152result = Unsafe.ReadUnaligned<short>(pointer + _offset + position); 177result = Unsafe.ReadUnaligned<int>(pointer + _offset + position); 202result = Unsafe.ReadUnaligned<long>(pointer + _offset + position); 232lo = Unsafe.ReadUnaligned<int>(pointer); 233mid = Unsafe.ReadUnaligned<int>(pointer + 4); 234hi = Unsafe.ReadUnaligned<int>(pointer + 8); 235flags = Unsafe.ReadUnaligned<int>(pointer + 12);
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
954ulong val = Unsafe.ReadUnaligned<ulong>(chars);
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (1)
1132scale = Unsafe.ReadUnaligned<Vector3>(scales);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (3)
315return Unsafe.ReadUnaligned<short>(addr); 339return Unsafe.ReadUnaligned<int>(addr); 386return Unsafe.ReadUnaligned<long>(addr);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (2)
195return Unsafe.ReadUnaligned<T>(ptr); 249Unsafe.Add(ref structure, (nint)(uint)i) = Unsafe.ReadUnaligned<T>(ptr + alignedSizeofT * (uint)i);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (8)
877hash1 = BitOperations.RotateLeft(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr); 878hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr + 1); 885hash1 = BitOperations.RotateLeft(hash1, 5) + hash1 ^ Unsafe.ReadUnaligned<uint>(ptr); 896hash2 = BitOperations.RotateLeft(hash2, 5) + hash2 ^ Unsafe.ReadUnaligned<uint>(ptr); 987p0 = Unsafe.ReadUnaligned<uint>(ptr); 988p1 = Unsafe.ReadUnaligned<uint>(ptr + 1); 1003p0 = Unsafe.ReadUnaligned<uint>(ptr); 1020p0 = Unsafe.ReadUnaligned<uint>(ptr);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (2)
318ulong nextBlockAsUInt64 = Unsafe.ReadUnaligned<ulong>(&pSrc[i]); 377uint nextBlockAsUInt32 = Unsafe.ReadUnaligned<uint>(&pSrc[i]);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (25)
266currentUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer); 267uint nextUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer + 4); 291currentUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer); 304currentUInt32 = Unsafe.ReadUnaligned<ushort>(pBuffer); 636ulong candidateUInt64 = Unsafe.ReadUnaligned<ulong>(pBuffer); 651currentDWord = Unsafe.ReadUnaligned<uint>(pBuffer); 652uint nextDWord = Unsafe.ReadUnaligned<uint>(pBuffer + 4); 676currentDWord = Unsafe.ReadUnaligned<uint>(pBuffer); 691currentDWord = Unsafe.ReadUnaligned<ushort>(pBuffer); 885currentUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer); 886uint nextUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer + 4 / sizeof(char)); 910currentUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer); 1192ulong candidateUInt64 = Unsafe.ReadUnaligned<ulong>(pBuffer); 1209currentDWord = Unsafe.ReadUnaligned<uint>(pBuffer); 1210uint nextDWord = Unsafe.ReadUnaligned<uint>(pBuffer + 4 / sizeof(char)); 1234currentDWord = Unsafe.ReadUnaligned<uint>(pBuffer); 1358utf16Data64Bits = Unsafe.ReadUnaligned<ulong>(pUtf16Buffer); 1366utf16Data32BitsHigh = Unsafe.ReadUnaligned<uint>(pUtf16Buffer); 1367utf16Data32BitsLow = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + 4 / sizeof(char)); 1402utf16Data64Bits = Unsafe.ReadUnaligned<ulong>(pUtf16Buffer + currentOffset); 1412utf16Data32BitsHigh = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + currentOffset); 1413utf16Data32BitsLow = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + currentOffset + 4 / sizeof(char)); 1431utf16Data32BitsHigh = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + currentOffset); 2103asciiData = Unsafe.ReadUnaligned<uint>(pAsciiBuffer + currentOffset); 2118asciiData = Unsafe.ReadUnaligned<ushort>(pAsciiBuffer + currentOffset);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (21)
52if (Vector.LessThanOrEqualAll(Unsafe.ReadUnaligned<Vector<ushort>>(pBuffer), maxLatin1)) 98currentUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer); 99uint nextUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer + 4 / sizeof(char)); 123currentUInt32 = Unsafe.ReadUnaligned<uint>(pBuffer); 463ulong candidateUInt64 = Unsafe.ReadUnaligned<ulong>(pBuffer); 480currentDWord = Unsafe.ReadUnaligned<uint>(pBuffer); 481uint nextDWord = Unsafe.ReadUnaligned<uint>(pBuffer + 4 / sizeof(char)); 505currentDWord = Unsafe.ReadUnaligned<uint>(pBuffer); 560utf16Data64Bits = Unsafe.ReadUnaligned<ulong>(pUtf16Buffer); 568utf16Data32BitsHigh = Unsafe.ReadUnaligned<uint>(pUtf16Buffer); 569utf16Data32BitsLow = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + 4 / sizeof(char)); 592utf16Data64Bits = Unsafe.ReadUnaligned<ulong>(pUtf16Buffer); 600utf16Data32BitsHigh = Unsafe.ReadUnaligned<uint>(pUtf16Buffer); 601utf16Data32BitsLow = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + 4 / sizeof(char)); 613Vector<ushort> utf16VectorHigh = Unsafe.ReadUnaligned<Vector<ushort>>(pUtf16Buffer + currentOffset); 614Vector<ushort> utf16VectorLow = Unsafe.ReadUnaligned<Vector<ushort>>(pUtf16Buffer + currentOffset + Vector<ushort>.Count); 644utf16Data64Bits = Unsafe.ReadUnaligned<ulong>(pUtf16Buffer + currentOffset); 654utf16Data32BitsHigh = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + currentOffset); 655utf16Data32BitsLow = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + currentOffset + 4 / sizeof(char)); 673utf16Data32BitsHigh = Unsafe.ReadUnaligned<uint>(pUtf16Buffer + currentOffset); 1087Vector<byte> latin1Vector = Unsafe.ReadUnaligned<Vector<byte>>(pLatin1Buffer + currentOffset);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.Validation.cs (1)
417thisChar = Unsafe.ReadUnaligned<uint>(pInputBuffer);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (20)
69uint thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 104thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 105secondDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer + sizeof(uint)); 245thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 300thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 389thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 412thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 496uint secondDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer + 3); 552thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 905thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 959utf16Data = Unsafe.ReadUnaligned<Vector128<short>>(pInputBuffer); 1000possibleNonAsciiQWord = Unsafe.ReadUnaligned<ulong>(pInputBuffer); 1097thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 1098secondDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer + 2); 1174thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 1211thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 1271thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 1310thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 1368thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 1388thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Validation.cs (8)
74uint thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 104thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 200thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); // no longer guaranteed to be aligned 246thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 301thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 355thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer); 466ulong thisQWord = Unsafe.ReadUnaligned<ulong>(pInputBuffer); 566thisDWord = Unsafe.ReadUnaligned<uint>(pInputBuffer);
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
1540int data = Unsafe.ReadUnaligned<int>((void*)blobStart);
System.Reflection.Metadata (3)
System\Reflection\Internal\Utilities\MemoryBlock.cs (3)
130uint result = Unsafe.ReadUnaligned<uint>(Pointer + offset); 188ushort result = Unsafe.ReadUnaligned<ushort>(Pointer + offset); 248return Unsafe.ReadUnaligned<Guid>(ptr);
Test.Utilities (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));
Text.Analyzers (4)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
794Unsafe.ReadUnaligned<uint>(data) : 795BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<uint>(data)); 800Unsafe.ReadUnaligned<ulong>(data) : 801BinaryPrimitives.ReverseEndianness(Unsafe.ReadUnaligned<ulong>(data));