Big-endian fix: GUID handling (#49813)
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 19 Mar 2021 12:00:15 +0000 (13:00 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 12:00:15 +0000 (13:00 +0100)
commitc37395208c35770a0203785b886f990ee5c12fcd
tree65d79a02aa54177e4fc449acc564bb441b69cea4
parent3042a6657b1ab38f39c9826c959669a811532230
Big-endian fix: GUID handling (#49813)

* Fix Utf8Formatter.Guid on big-endian systems
  (first three fields are stored in native byte order, not always
  little-endian)

* Use Guid constructor in BlobContentId.FromHash to remove
  endian-dependent code accessing the structure directly
src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Utf8Formatter/Utf8Formatter.Guid.cs
src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/BlobContentId.cs