diff --git a/src/System.Memory/ref/System.Memory.cs b/src/System.Memory/ref/System.Memory.cs index 0a55e89d5a43..bc50cb30c873 100644 --- a/src/System.Memory/ref/System.Memory.cs +++ b/src/System.Memory/ref/System.Memory.cs @@ -503,6 +503,10 @@ public static partial class MemoryMarshal public static System.Collections.Generic.IEnumerable ToEnumerable(ReadOnlyMemory memory) { throw null; } public static System.ReadOnlySpan Cast(System.ReadOnlySpan source) where TFrom : struct where TTo : struct { throw null; } public static System.Span Cast(System.Span source) where TFrom : struct where TTo : struct { throw null; } + public static bool TryGetArray(in System.Buffers.ReadOnlySequence sequence, out System.ArraySegment array) { throw null; } + public static bool TryGetMemoryList(in System.Buffers.ReadOnlySequence sequence, out System.Buffers.IMemoryList startSegment, out int startIndex, out System.Buffers.IMemoryList endSegment, out int endIndex) { throw null; } + public static bool TryGetOwnedMemory(in System.Buffers.ReadOnlySequence sequence, out System.Buffers.OwnedMemory ownedMemory, out int start, out int length) { throw null; } + public static bool TryGetReadOnlyMemory(in System.Buffers.ReadOnlySequence sequence, out System.ReadOnlyMemory readOnlyMemory) { throw null; } #if !FEATURE_PORTABLE_SPAN public static System.ReadOnlySpan CreateReadOnlySpan(ref T reference, int length) { throw null; } public static System.Span CreateSpan(ref T reference, int length) { throw null; } diff --git a/src/System.Memory/src/System/Runtime/InteropServices/MemoryMarshal.ReadOnlySequence.cs b/src/System.Memory/src/System/Runtime/InteropServices/MemoryMarshal.ReadOnlySequence.cs index bdcfecb117e4..1cc3ee40e05f 100644 --- a/src/System.Memory/src/System/Runtime/InteropServices/MemoryMarshal.ReadOnlySequence.cs +++ b/src/System.Memory/src/System/Runtime/InteropServices/MemoryMarshal.ReadOnlySequence.cs @@ -6,6 +6,10 @@ namespace System.Runtime.InteropServices { + /// + /// Provides a collection of methods for interoperating with , , + /// , and . + /// public static partial class MemoryMarshal { ///