<PackageReference Include="System.Memory" Version="4.5.0-preview1-26216-02" />

MemoryExtensions

public static class MemoryExtensions
public static Span<byte> AsBytes<T>(this Span<T> source) where T : struct

public static ReadOnlySpan<byte> AsBytes<T>(this ReadOnlySpan<T> source) where T : struct

public static ReadOnlyMemory<T> AsReadOnlyMemory<T>(this Memory<T> memory)

public static ReadOnlyMemory<char> AsReadOnlyMemory(this string text)

public static ReadOnlyMemory<char> AsReadOnlyMemory(this string text, int start)

public static ReadOnlyMemory<char> AsReadOnlyMemory(this string text, int start, int length)

public static ReadOnlySpan<T> AsReadOnlySpan<T>(this T[] array)

public static ReadOnlySpan<T> AsReadOnlySpan<T>(this Span<T> span)

public static ReadOnlySpan<T> AsReadOnlySpan<T>(this ArraySegment<T> arraySegment)

public static ReadOnlySpan<char> AsReadOnlySpan(this string text)

public static ReadOnlySpan<char> AsReadOnlySpan(this string text, int start)

public static ReadOnlySpan<char> AsReadOnlySpan(this string text, int start, int length)

public static Span<T> AsSpan<T>(this T[] array)

public static Span<T> AsSpan<T>(this ArraySegment<T> arraySegment)

public static int BinarySearch<T>(this Span<T> span, IComparable<T> comparable)

public static int BinarySearch<T, TComparable>(this Span<T> span, TComparable comparable) where TComparable : IComparable<T>

public static int BinarySearch<T, TComparer>(this Span<T> span, T value, TComparer comparer) where TComparer : IComparer<T>

public static int BinarySearch<T>(this ReadOnlySpan<T> span, IComparable<T> comparable)

public static int BinarySearch<T, TComparable>(this ReadOnlySpan<T> span, TComparable comparable) where TComparable : IComparable<T>

public static int BinarySearch<T, TComparer>(this ReadOnlySpan<T> span, T value, TComparer comparer) where TComparer : IComparer<T>

public static void CopyTo<T>(this T[] array, Span<T> destination)

public static void CopyTo<T>(this T[] array, Memory<T> destination)

public static bool EndsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static bool EndsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static int IndexOf<T>(this Span<T> span, T value) where T : IEquatable<T>

public static int IndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static int IndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>

public static int IndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static int IndexOfAny<T>(this Span<T> span, T value0, T value1) where T : IEquatable<T>

public static int IndexOfAny<T>(this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>

public static int IndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>

public static int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>

public static int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>

public static int IndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>

public static int LastIndexOf<T>(this Span<T> span, T value) where T : IEquatable<T>

public static int LastIndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static int LastIndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>

public static int LastIndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static int LastIndexOfAny<T>(this Span<T> span, T value0, T value1) where T : IEquatable<T>

public static int LastIndexOfAny<T>(this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>

public static int LastIndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>

public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>

public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>

public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>

public static Span<TTo> NonPortableCast<TFrom, TTo>(this Span<TFrom> source) where TFrom : struct where TTo : struct

public static ReadOnlySpan<TTo> NonPortableCast<TFrom, TTo>(this ReadOnlySpan<TFrom> source) where TFrom : struct where TTo : struct

public static bool Overlaps<T>(this Span<T> first, ReadOnlySpan<T> second)

public static bool Overlaps<T>(this Span<T> first, ReadOnlySpan<T> second, out int elementOffset)

public static bool Overlaps<T>(this ReadOnlySpan<T> first, ReadOnlySpan<T> second)

public static bool Overlaps<T>(this ReadOnlySpan<T> first, ReadOnlySpan<T> second, out int elementOffset)

public static void Reverse<T>(this Span<T> span)

public static int SequenceCompareTo<T>(this Span<T> first, ReadOnlySpan<T> second) where T : IComparable<T>

public static int SequenceCompareTo<T>(this ReadOnlySpan<T> first, ReadOnlySpan<T> second) where T : IComparable<T>

public static bool SequenceEqual<T>(this Span<T> first, ReadOnlySpan<T> second) where T : IEquatable<T>

public static bool SequenceEqual<T>(this ReadOnlySpan<T> first, ReadOnlySpan<T> second) where T : IEquatable<T>

public static bool StartsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static bool StartsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>

public static bool TryGetString(this ReadOnlyMemory<char> readOnlyMemory, out string text, out int start, out int length)