<PackageReference Include="System.Memory" Version="4.5.0-preview1-26216-02" />
API Differences between 4.5.0-preview1-26216-02 and 4.4.0-preview1-25305-02
244 Additions
6 Removals
System
-
public struct Memory<T>
-
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)
-
public struct ReadOnlyMemory<T>
-
public struct ReadOnlySpan<T>
-
public struct Span<T>
-
public static class SpanExtensions
System.Buffers
System.Buffers.Binary
-
public static class BinaryPrimitives
- public static short ReadInt16BigEndian(ReadOnlySpan<byte> buffer)
- public static short ReadInt16LittleEndian(ReadOnlySpan<byte> buffer)
- public static int ReadInt32BigEndian(ReadOnlySpan<byte> buffer)
- public static int ReadInt32LittleEndian(ReadOnlySpan<byte> buffer)
- public static long ReadInt64BigEndian(ReadOnlySpan<byte> buffer)
- public static long ReadInt64LittleEndian(ReadOnlySpan<byte> buffer)
- public static T ReadMachineEndian<T>(ReadOnlySpan<byte> buffer) where T : struct
- public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> buffer)
- public static ushort ReadUInt16LittleEndian(ReadOnlySpan<byte> buffer)
- public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> buffer)
- public static uint ReadUInt32LittleEndian(ReadOnlySpan<byte> buffer)
- public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> buffer)
- public static ulong ReadUInt64LittleEndian(ReadOnlySpan<byte> buffer)
- 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> buffer, out short value)
- public static bool TryReadInt16LittleEndian(ReadOnlySpan<byte> buffer, out short value)
- public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> buffer, out int value)
- public static bool TryReadInt32LittleEndian(ReadOnlySpan<byte> buffer, out int value)
- public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> buffer, out long value)
- public static bool TryReadInt64LittleEndian(ReadOnlySpan<byte> buffer, out long value)
- public static bool TryReadMachineEndian<T>(ReadOnlySpan<byte> buffer, out T value) where T : struct
- public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> buffer, out ushort value)
- public static bool TryReadUInt16LittleEndian(ReadOnlySpan<byte> buffer, out ushort value)
- public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> buffer, out uint value)
- public static bool TryReadUInt32LittleEndian(ReadOnlySpan<byte> buffer, out uint value)
- public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> buffer, out ulong value)
- public static bool TryReadUInt64LittleEndian(ReadOnlySpan<byte> buffer, out ulong value)
- public static bool TryWriteInt16BigEndian(Span<byte> buffer, short value)
- public static bool TryWriteInt16LittleEndian(Span<byte> buffer, short value)
- public static bool TryWriteInt32BigEndian(Span<byte> buffer, int value)
- public static bool TryWriteInt32LittleEndian(Span<byte> buffer, int value)
- public static bool TryWriteInt64BigEndian(Span<byte> buffer, long value)
- public static bool TryWriteInt64LittleEndian(Span<byte> buffer, long value)
- public static bool TryWriteMachineEndian<T>(Span<byte> buffer, ref T value) where T : struct
- public static bool TryWriteUInt16BigEndian(Span<byte> buffer, ushort value)
- public static bool TryWriteUInt16LittleEndian(Span<byte> buffer, ushort value)
- public static bool TryWriteUInt32BigEndian(Span<byte> buffer, uint value)
- public static bool TryWriteUInt32LittleEndian(Span<byte> buffer, uint value)
- public static bool TryWriteUInt64BigEndian(Span<byte> buffer, ulong value)
- public static bool TryWriteUInt64LittleEndian(Span<byte> buffer, ulong value)
- public static void WriteInt16BigEndian(Span<byte> buffer, short value)
- public static void WriteInt16LittleEndian(Span<byte> buffer, short value)
- public static void WriteInt32BigEndian(Span<byte> buffer, int value)
- public static void WriteInt32LittleEndian(Span<byte> buffer, int value)
- public static void WriteInt64BigEndian(Span<byte> buffer, long value)
- public static void WriteInt64LittleEndian(Span<byte> buffer, long value)
- public static void WriteMachineEndian<T>(Span<byte> buffer, ref T value) where T : struct
- public static void WriteUInt16BigEndian(Span<byte> buffer, ushort value)
- public static void WriteUInt16LittleEndian(Span<byte> buffer, ushort value)
- public static void WriteUInt32BigEndian(Span<byte> buffer, uint value)
- public static void WriteUInt32LittleEndian(Span<byte> buffer, uint value)
- public static void WriteUInt64BigEndian(Span<byte> buffer, ulong value)
- public static void WriteUInt64LittleEndian(Span<byte> buffer, ulong value)
System.Buffers.Text
-
public static class Base64
- public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> utf8, Span<byte> bytes, out int consumed, out int written, bool isFinalBlock = true)
- public static OperationStatus DecodeFromUtf8InPlace(Span<byte> buffer, out int written)
- public static OperationStatus EncodeToUtf8(ReadOnlySpan<byte> bytes, Span<byte> utf8, out int consumed, out int written, bool isFinalBlock = true)
- public static OperationStatus EncodeToUtf8InPlace(Span<byte> buffer, int dataLength, out int written)
- public static int GetMaxDecodedFromUtf8Length(int length)
- public static int GetMaxEncodedToUtf8Length(int length)
-
public static class Utf8Formatter
- public static bool TryFormat(bool value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(DateTimeOffset value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(DateTime value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(decimal value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(double value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(float value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(Guid value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(byte value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(sbyte value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(ushort value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(short value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(uint value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(int value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(ulong value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(long value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
- public static bool TryFormat(TimeSpan value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default)
-
public static class Utf8Parser
- public static bool TryParse(ReadOnlySpan<byte> text, out bool value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out DateTime value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out DateTimeOffset value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out decimal value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out float value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out double value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out Guid value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out sbyte value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out short value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out int value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out long value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out byte value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out ushort value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out uint value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out ulong value, out int bytesConsumed, char standardFormat = ' ')
- public static bool TryParse(ReadOnlySpan<byte> text, out TimeSpan value, out int bytesConsumed, char standardFormat = ' ')
System.Runtime.InteropServices