<PackageReference Include="System.Memory" Version="4.5.3" />
API Differences between 4.5.3 and 4.4.0-preview1-25305-02
329 Additions
8 Removals
System
-
public struct Memory<T>
-
public static class MemoryExtensions
- public static Memory<T> AsMemory<T>(this T[] array)
- public static Memory<T> AsMemory<T>(this T[] array, int start)
- public static Memory<T> AsMemory<T>(this T[] array, int start, int length)
- public static Memory<T> AsMemory<T>(this ArraySegment<T> segment)
- public static Memory<T> AsMemory<T>(this ArraySegment<T> segment, int start)
- public static Memory<T> AsMemory<T>(this ArraySegment<T> segment, int start, int length)
- public static ReadOnlyMemory<char> AsMemory(this string text)
- public static ReadOnlyMemory<char> AsMemory(this string text, int start)
- public static ReadOnlyMemory<char> AsMemory(this string text, int start, int length)
- public static Span<T> AsSpan<T>(this T[] array)
- public static Span<T> AsSpan<T>(this T[] array, int start, int length)
- public static Span<T> AsSpan<T>(this ArraySegment<T> segment)
- public static Span<T> AsSpan<T>(this ArraySegment<T> segment, int start)
- public static Span<T> AsSpan<T>(this ArraySegment<T> segment, int start, int length)
- public static Span<T> AsSpan<T>(this T[] array, int start)
- public static ReadOnlySpan<char> AsSpan(this string text)
- public static ReadOnlySpan<char> AsSpan(this string text, int start)
- public static ReadOnlySpan<char> AsSpan(this string text, int start, int length)
- 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 int CompareTo(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType)
- public static bool Contains(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
- public static void CopyTo<T>(this T[] source, Span<T> destination)
- public static void CopyTo<T>(this T[] source, 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 bool EndsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
- public static bool Equals(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType)
- 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 IndexOf(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
- 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 bool IsWhiteSpace(this ReadOnlySpan<char> span)
- 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 bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other)
- public static bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other, out int elementOffset)
- public static bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other)
- public static bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, out int elementOffset)
- public static void Reverse<T>(this Span<T> span)
- public static int SequenceCompareTo<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>
- public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>
- public static bool SequenceEqual<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>
- public static bool SequenceEqual<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) 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 StartsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
- public static int ToLower(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo culture)
- public static int ToLowerInvariant(this ReadOnlySpan<char> source, Span<char> destination)
- public static int ToUpper(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo culture)
- public static int ToUpperInvariant(this ReadOnlySpan<char> source, Span<char> destination)
- public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span)
- public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span, char trimChar)
- public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars)
- public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span)
- public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span, char trimChar)
- public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars)
- public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span)
- public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span, char trimChar)
- public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars)
-
public struct ReadOnlyMemory<T>
-
public struct ReadOnlySpan<T>
-
public struct SequencePosition : IEquatable<SequencePosition>
-
public struct Span<T>
-
public static class SpanExtensions
System.Buffers
-
public static class BuffersExtensions
-
public interface IBufferWriter<T>
-
public interface IMemoryOwner<T> : IDisposable
-
public interface IPinnable
-
public struct MemoryHandle : IDisposable
-
public abstract class MemoryManager<T> : IMemoryOwner<T>, IDisposable, IPinnable
-
public abstract class MemoryPool<T> : IDisposable
-
public enum OperationStatus
-
public struct ReadOnlySequence<T>
- public struct Enumerator<T>
- public static readonly ReadOnlySequence<T> Empty
- public SequencePosition End { get; }
- public ReadOnlyMemory<T> First { get; }
- public bool IsEmpty { get; }
- public bool IsSingleSegment { get; }
- public long Length { get; }
- public SequencePosition Start { get; }
- public ReadOnlySequence(ReadOnlySequenceSegment<T> startSegment, int startIndex, ReadOnlySequenceSegment<T> endSegment, int endIndex)
- public ReadOnlySequence(T[] array)
- public ReadOnlySequence(T[] array, int start, int length)
- public ReadOnlySequence(ReadOnlyMemory<T> memory)
- public Enumerator<T> GetEnumerator()
- public SequencePosition GetPosition(long offset)
- public SequencePosition GetPosition(long offset, SequencePosition origin)
- public ReadOnlySequence<T> Slice(long start, long length)
- public ReadOnlySequence<T> Slice(long start, SequencePosition end)
- public ReadOnlySequence<T> Slice(SequencePosition start, long length)
- public ReadOnlySequence<T> Slice(int start, int length)
- public ReadOnlySequence<T> Slice(int start, SequencePosition end)
- public ReadOnlySequence<T> Slice(SequencePosition start, int length)
- public ReadOnlySequence<T> Slice(SequencePosition start, SequencePosition end)
- public ReadOnlySequence<T> Slice(SequencePosition start)
- public ReadOnlySequence<T> Slice(long start)
- public bool TryGet(ref SequencePosition position, out ReadOnlyMemory memory, bool advance = true)
-
public abstract class ReadOnlySequenceSegment<T>
-
public struct StandardFormat : IEquatable<StandardFormat>
System.Buffers.Binary
-
public static class BinaryPrimitives
- public static short ReadInt16BigEndian(ReadOnlySpan<byte> source)
- public static short ReadInt16LittleEndian(ReadOnlySpan<byte> source)
- public static int ReadInt32BigEndian(ReadOnlySpan<byte> source)
- public static int ReadInt32LittleEndian(ReadOnlySpan<byte> source)
- public static long ReadInt64BigEndian(ReadOnlySpan<byte> source)
- public static long ReadInt64LittleEndian(ReadOnlySpan<byte> source)
- public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> source)
- public static ushort ReadUInt16LittleEndian(ReadOnlySpan<byte> source)
- public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> source)
- public static uint ReadUInt32LittleEndian(ReadOnlySpan<byte> source)
- public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> source)
- public static ulong ReadUInt64LittleEndian(ReadOnlySpan<byte> source)
- public static sbyte ReverseEndianness(sbyte value)
- public static short ReverseEndianness(short value)
- public static int ReverseEndianness(int value)
- public static long ReverseEndianness(long value)
- public static byte ReverseEndianness(byte value)
- public static ushort ReverseEndianness(ushort value)
- public static uint ReverseEndianness(uint value)
- public static ulong ReverseEndianness(ulong value)
- public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> source, out short value)
- public static bool TryReadInt16LittleEndian(ReadOnlySpan<byte> source, out short value)
- public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> source, out int value)
- public static bool TryReadInt32LittleEndian(ReadOnlySpan<byte> source, out int value)
- public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> source, out long value)
- public static bool TryReadInt64LittleEndian(ReadOnlySpan<byte> source, out long value)
- public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> source, out ushort value)
- public static bool TryReadUInt16LittleEndian(ReadOnlySpan<byte> source, out ushort value)
- public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> source, out uint value)
- public static bool TryReadUInt32LittleEndian(ReadOnlySpan<byte> source, out uint value)
- public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> source, out ulong value)
- public static bool TryReadUInt64LittleEndian(ReadOnlySpan<byte> source, out ulong value)
- public static bool TryWriteInt16BigEndian(Span<byte> destination, short value)
- public static bool TryWriteInt16LittleEndian(Span<byte> destination, short value)
- public static bool TryWriteInt32BigEndian(Span<byte> destination, int value)
- public static bool TryWriteInt32LittleEndian(Span<byte> destination, int value)
- public static bool TryWriteInt64BigEndian(Span<byte> destination, long value)
- public static bool TryWriteInt64LittleEndian(Span<byte> destination, long value)
- public static bool TryWriteUInt16BigEndian(Span<byte> destination, ushort value)
- public static bool TryWriteUInt16LittleEndian(Span<byte> destination, ushort value)
- public static bool TryWriteUInt32BigEndian(Span<byte> destination, uint value)
- public static bool TryWriteUInt32LittleEndian(Span<byte> destination, uint value)
- public static bool TryWriteUInt64BigEndian(Span<byte> destination, ulong value)
- public static bool TryWriteUInt64LittleEndian(Span<byte> destination, ulong value)
- public static void WriteInt16BigEndian(Span<byte> destination, short value)
- public static void WriteInt16LittleEndian(Span<byte> destination, short value)
- public static void WriteInt32BigEndian(Span<byte> destination, int value)
- public static void WriteInt32LittleEndian(Span<byte> destination, int value)
- public static void WriteInt64BigEndian(Span<byte> destination, long value)
- public static void WriteInt64LittleEndian(Span<byte> destination, long value)
- public static void WriteUInt16BigEndian(Span<byte> destination, ushort value)
- public static void WriteUInt16LittleEndian(Span<byte> destination, ushort value)
- public static void WriteUInt32BigEndian(Span<byte> destination, uint value)
- public static void WriteUInt32LittleEndian(Span<byte> destination, uint value)
- public static void WriteUInt64BigEndian(Span<byte> destination, ulong value)
- public static void WriteUInt64LittleEndian(Span<byte> destination, ulong value)
System.Buffers.Text
-
public static class Base64
- public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> utf8, Span<byte> bytes, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true)
- public static OperationStatus DecodeFromUtf8InPlace(Span<byte> buffer, out int bytesWritten)
- public static OperationStatus EncodeToUtf8(ReadOnlySpan<byte> bytes, Span<byte> utf8, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true)
- public static OperationStatus EncodeToUtf8InPlace(Span<byte> buffer, int dataLength, out int bytesWritten)
- public static int GetMaxDecodedFromUtf8Length(int length)
- public static int GetMaxEncodedToUtf8Length(int length)
-
public static class Utf8Formatter
- public static bool TryFormat(bool value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(DateTimeOffset value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(DateTime value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(decimal value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(double value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(float value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(Guid value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(byte value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(sbyte value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(ushort value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(short value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(uint value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(int value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(ulong value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(long value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(TimeSpan value, Span<byte> destination, out int bytesWritten, StandardFormat format = default)
-
public static class Utf8Parser
- public static bool TryParse(ReadOnlySpan<byte> source, out bool value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out DateTime value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out DateTimeOffset value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out decimal value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out float value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out double value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out Guid value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out sbyte value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out short value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out int value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out long value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> source, out TimeSpan value, out int bytesConsumed, char standardFormat = ' ')
System.Runtime.InteropServices
-
public static class MemoryMarshal
- public static Span<byte> AsBytes<T>(Span<T> span) where T : struct
- public static ReadOnlySpan<byte> AsBytes<T>(ReadOnlySpan<T> span) where T : struct
- public static Memory<T> AsMemory<T>(ReadOnlyMemory<T> memory)
- public static Span<TTo> Cast<TFrom, TTo>(Span<TFrom> span) where TFrom : struct where TTo : struct
- public static ReadOnlySpan<TTo> Cast<TFrom, TTo>(ReadOnlySpan<TFrom> span) where TFrom : struct where TTo : struct
- public static Memory<T> CreateFromPinnedArray<T>(T[] array, int start, int length)
- public static ref T GetReference<T>(Span<T> span)
- public static ref T GetReference<T>(ReadOnlySpan<T> span)
- public static T Read<T>(ReadOnlySpan<byte> source) where T : struct
- public static IEnumerable<T> ToEnumerable<T>(ReadOnlyMemory<T> memory)
- public static bool TryGetArray<T>(ReadOnlyMemory<T> memory, out ArraySegment segment)
- public static bool TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T> memory, out TManager manager) where TManager : MemoryManager<T>
- public static bool TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T> memory, out TManager manager, out int start, out int length) where TManager : MemoryManager<T>
- public static bool TryGetString(ReadOnlyMemory<char> memory, out string text, out int start, out int length)
- public static bool TryRead<T>(ReadOnlySpan<byte> source, out T value) where T : struct
- public static bool TryWrite<T>(Span<byte> destination, ref T value) where T : struct
- public static void Write<T>(Span<byte> destination, ref T value) where T : struct
-
public static class SequenceMarshal