Add {ReadOnly}Span ctor (internal for now) that takes a ref and no length (#67447)
authorStephen Toub <stoub@microsoft.com>
Sat, 2 Apr 2022 20:24:37 +0000 (16:24 -0400)
committerGitHub <noreply@github.com>
Sat, 2 Apr 2022 20:24:37 +0000 (16:24 -0400)
commit041933fd086f69f839cf38733dd56a1ea9f09866
tree4697ae97171e58a7a9dcb6ce464cd97d11135ea2
parent135053eae07c2bcf21d73996aaca19daae8f9323
Add {ReadOnly}Span ctor (internal for now) that takes a ref and no length (#67447)

* Add {ReadOnly}Span ctor (internal for now) that takes an in and no length

* Address PR feedback

* Fix native references to _pointer
24 files changed:
src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeAssembly.cs
src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.CoreCLR.cs
src/coreclr/System.Private.CoreLib/src/System/StubHelpers.cs
src/coreclr/jit/importer.cpp
src/coreclr/jit/morphblock.cpp
src/coreclr/vm/object.h
src/libraries/System.Private.CoreLib/src/System/Array.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/CompareInfo.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeFormat.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TimeSpanFormat.cs
src/libraries/System.Private.CoreLib/src/System/Guid.cs
src/libraries/System.Private.CoreLib/src/System/IO/BinaryWriter.cs
src/libraries/System.Private.CoreLib/src/System/IO/Strategies/OSFileStreamStrategy.cs
src/libraries/System.Private.CoreLib/src/System/ReadOnlySpan.cs
src/libraries/System.Private.CoreLib/src/System/Resources/ManifestBasedResourceGroveler.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MemoryMarshal.cs
src/libraries/System.Private.CoreLib/src/System/Span.cs
src/libraries/System.Private.CoreLib/src/System/String.Manipulation.cs
src/libraries/System.Private.CoreLib/src/System/String.cs
src/libraries/System.Private.CoreLib/src/System/Text/DecoderNLS.cs
src/libraries/System.Private.CoreLib/src/System/Text/TranscodingStream.cs
src/mono/mono/metadata/object-internals.h
src/mono/mono/mini/interp/transform.c
src/mono/mono/mini/intrinsics.c