Add GetReference and TryGetArray to MemoryMarshal (#15417)
authorAhson Khan <ahkha@microsoft.com>
Fri, 8 Dec 2017 11:04:57 +0000 (03:04 -0800)
committerJan Kotas <jkotas@microsoft.com>
Fri, 8 Dec 2017 11:04:57 +0000 (06:04 -0500)
commit0919eb360aeaa0045ea1e3822820265aed140967
treeaae02f0ec0bde535b22163df2b8a1fa6567a2afb
parent4feaa863302ac5d3f4f884719edb0ca0a377100f
Add GetReference and TryGetArray to MemoryMarshal (#15417)

* Add GetReference and TryGetArray to MemoryMarshal

* Marking GetReference with AggressiveInlining

* Do not use ByReference as a return type.

* Addressing PR feedback.
src/mscorlib/shared/System/ReadOnlyMemory.cs
src/mscorlib/shared/System/ReadOnlySpan.cs
src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs
src/mscorlib/shared/System/Span.cs