Fixing Retain to return MemoryHandle with correct PinnedPointer (dotnet/coreclr#14248)
authorAhson Ahmed Khan <ahsonkhan@users.noreply.github.com>
Fri, 29 Sep 2017 03:05:35 +0000 (20:05 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2017 03:05:35 +0000 (20:05 -0700)
commit3a82d619f98c39c310cb1e4d97caf60d844f3983
tree10181e716ce79bca337a648b7b5a2ca97cec0e8d
parente059c79eac9a95e56c73b24029447725896f5d45
Fixing Retain to return MemoryHandle with correct PinnedPointer (dotnet/coreclr#14248)

* Fixing Retain to return MemoryHandle with correct PinnedPointer.

* Make MemoryHandle AddOffset internal.

Commit migrated from https://github.com/dotnet/coreclr/commit/eab3a973346bf4bc5ddffc5201f862141a96b000
src/coreclr/src/mscorlib/shared/System/Buffers/MemoryHandle.cs
src/coreclr/src/mscorlib/shared/System/Memory.cs
src/coreclr/src/mscorlib/shared/System/ReadOnlyMemory.cs
src/coreclr/src/mscorlib/src/System/ThrowHelper.cs