Port changes to UnmanagedMemoryStream from corefx (#7418)
authorAlex Perovich <alperovi@microsoft.com>
Fri, 30 Sep 2016 22:54:59 +0000 (15:54 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2016 22:54:59 +0000 (15:54 -0700)
commit21c75bac8994d022d6f8a96193c3013de28c9c33
tree18d7b1cc6abad2b5a208d4b051cfcb0932cbe558
parent5fb3c61d74899b1eed6400a9bcefed6367385a73
Port changes to UnmanagedMemoryStream from corefx (#7418)

* Port changes to UnmanagedMemoryStream from corefx

dotnet/corefx#12170

* Add PrepareConstrainedRegions

* Add Back Read<T> and Write<T> methods

* Replace MemoryCopy with Memcpy
src/mscorlib/src/System/IO/UnmanagedMemoryAccessor.cs
src/mscorlib/src/System/IO/UnmanagedMemoryStream.cs