Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit faa6219

Browse files
committed
Add to ref
1 parent b6c98a1 commit faa6219

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/System.Memory/ref/System.Memory.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,18 @@ public static partial class Utf8Parser
494494
}
495495
namespace System.Runtime.InteropServices
496496
{
497+
using System.Buffers;
498+
497499
public static partial class MemoryMarshal
498500
{
499501
public static System.Memory<T> AsMemory<T>(System.ReadOnlyMemory<T> readOnlyMemory) { throw null; }
500502
public static ref T GetReference<T>(System.ReadOnlySpan<T> span) { throw null; }
501503
public static ref T GetReference<T>(System.Span<T> span) { throw null; }
502504
public static bool TryGetArray<T>(System.ReadOnlyMemory<T> readOnlyMemory, out System.ArraySegment<T> arraySegment) { throw null; }
505+
public static bool TryGetOwnedMemory<T, TOwner>(ReadOnlyMemory<T> readOnlyMemory, out TOwner ownedMemory)
506+
where TOwner : OwnedMemory<T> { throw null; }
507+
public static bool TryGetOwnedMemory<T, TOwner>(ReadOnlyMemory<T> readOnlyMemory, out TOwner ownedMemory, out int index, out int length)
508+
where TOwner : OwnedMemory<T> { throw null; }
503509
public static System.Collections.Generic.IEnumerable<T> ToEnumerable<T>(ReadOnlyMemory<T> memory) { throw null; }
504510
public static System.ReadOnlySpan<TTo> Cast<TFrom, TTo>(System.ReadOnlySpan<TFrom> source) where TFrom : struct where TTo : struct { throw null; }
505511
public static System.Span<TTo> Cast<TFrom, TTo>(System.Span<TFrom> source) where TFrom : struct where TTo : struct { throw null; }

0 commit comments

Comments
 (0)