public abstract bool IsDisposed { get; }
protected abstract bool IsRetained { get; }
public abstract int Length { get; }
- public abstract Span<T> Span { get; }
- public void Dispose() { throw null; }
+ public System.Memory<T> Memory { get { throw null; } }
+ public abstract System.Span<T> Span { get; }
+ public void Dispose() { }
protected abstract void Dispose(bool disposing);
- public abstract MemoryHandle Pin(int offset = 0);
- public abstract System.Buffers.MemoryHandle Pin();
++ public abstract System.Buffers.MemoryHandle Pin(int offset=0);
public abstract bool Release();
public abstract void Retain();
- protected internal abstract bool TryGetArray(out ArraySegment<T> arraySegment);
+ protected internal abstract bool TryGetArray(out System.ArraySegment<T> arraySegment);
}
-
- public enum OperationStatus
+ public readonly partial struct StandardFormat : System.IEquatable<System.Buffers.StandardFormat>
{
- Done,
- DestinationTooSmall,
- NeedMoreData,
- InvalidData,
+ private readonly int _dummy;
+ public const byte MaxPrecision = (byte)99;
+ public const byte NoPrecision = (byte)255;
+ public StandardFormat(char symbol, byte precision=(byte)255) { throw null; }
+ public bool HasPrecision { get { throw null; } }
+ public bool IsDefault { get { throw null; } }
+ public byte Precision { get { throw null; } }
+ public char Symbol { get { throw null; } }
+ public bool Equals(System.Buffers.StandardFormat other) { throw null; }
+ public override bool Equals(object obj) { throw null; }
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(System.Buffers.StandardFormat left, System.Buffers.StandardFormat right) { throw null; }
+ public static implicit operator System.Buffers.StandardFormat (char symbol) { throw null; }
+ public static bool operator !=(System.Buffers.StandardFormat left, System.Buffers.StandardFormat right) { throw null; }
+ public static System.Buffers.StandardFormat Parse(System.ReadOnlySpan<char> format) { throw null; }
+ public static System.Buffers.StandardFormat Parse(string format) { throw null; }
+ public override string ToString() { throw null; }
}
}
-
namespace System.Buffers.Binary
{
- public static class BinaryPrimitives
+ public static partial class BinaryPrimitives
{
- [CLSCompliant(false)]
- public static sbyte ReverseEndianness(sbyte value) { throw null; }
+ public static short ReadInt16BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ public static short ReadInt16LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ public static int ReadInt32BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ public static int ReadInt32LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ public static long ReadInt64BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ public static long ReadInt64LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ public static T ReadMachineEndian<T>(System.ReadOnlySpan<byte> buffer) where T : struct { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static ushort ReadUInt16BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static ushort ReadUInt16LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static uint ReadUInt32BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static uint ReadUInt32LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static ulong ReadUInt64BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static ulong ReadUInt64LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; }
public static byte ReverseEndianness(byte value) { throw null; }
public static short ReverseEndianness(short value) { throw null; }
- [CLSCompliant(false)]
- public static ushort ReverseEndianness(ushort value) { throw null; }
public static int ReverseEndianness(int value) { throw null; }
- [CLSCompliant(false)]
- public static uint ReverseEndianness(uint value) { throw null; }
public static long ReverseEndianness(long value) { throw null; }
- [CLSCompliant(false)]
+ [System.CLSCompliantAttribute(false)]
+ public static sbyte ReverseEndianness(sbyte value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static ushort ReverseEndianness(ushort value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static uint ReverseEndianness(uint value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
public static ulong ReverseEndianness(ulong value) { throw null; }
-
- public static T ReadMachineEndian<T>(ReadOnlySpan<byte> buffer) where T : struct { throw null; }
- public static bool TryReadMachineEndian<T>(ReadOnlySpan<byte> buffer, out T value) where T : struct { throw null; }
-
- public static short ReadInt16LittleEndian(ReadOnlySpan<byte> buffer) { throw null; }
- public static int ReadInt32LittleEndian(ReadOnlySpan<byte> buffer) { throw null; }
- public static long ReadInt64LittleEndian(ReadOnlySpan<byte> buffer) { throw null; }
- [CLSCompliant(false)]
- public static ushort ReadUInt16LittleEndian(ReadOnlySpan<byte> buffer) { throw null; }
- [CLSCompliant(false)]
- public static uint ReadUInt32LittleEndian(ReadOnlySpan<byte> buffer) { throw null; }
- [CLSCompliant(false)]
- public static ulong ReadUInt64LittleEndian(ReadOnlySpan<byte> buffer) { throw null; }
-
- public static bool TryReadInt16LittleEndian(ReadOnlySpan<byte> buffer, out short value) { throw null; }
- public static bool TryReadInt32LittleEndian(ReadOnlySpan<byte> buffer, out int value) { throw null; }
- public static bool TryReadInt64LittleEndian(ReadOnlySpan<byte> buffer, out long value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryReadUInt16LittleEndian(ReadOnlySpan<byte> buffer, out ushort value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryReadUInt32LittleEndian(ReadOnlySpan<byte> buffer, out uint value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryReadUInt64LittleEndian(ReadOnlySpan<byte> buffer, out ulong value) { throw null; }
-
- public static short ReadInt16BigEndian(ReadOnlySpan<byte> buffer) { throw null; }
- public static int ReadInt32BigEndian(ReadOnlySpan<byte> buffer) { throw null; }
- public static long ReadInt64BigEndian(ReadOnlySpan<byte> buffer) { throw null; }
- [CLSCompliant(false)]
- public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> buffer) { throw null; }
- [CLSCompliant(false)]
- public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> buffer) { throw null; }
- [CLSCompliant(false)]
- public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> buffer) { throw null; }
-
- public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> buffer, out short value) { throw null; }
- public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> buffer, out int value) { throw null; }
- public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> buffer, out long value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> buffer, out ushort value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> buffer, out uint value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> buffer, out ulong value) { throw null; }
-
- public static void WriteMachineEndian<T>(Span<byte> buffer, ref T value) where T : struct { throw null; }
- public static bool TryWriteMachineEndian<T>(Span<byte> buffer, ref T value) where T : struct { throw null; }
-
- public static void WriteInt16LittleEndian(Span<byte> buffer, short value) { throw null; }
- public static void WriteInt32LittleEndian(Span<byte> buffer, int value) { throw null; }
- public static void WriteInt64LittleEndian(Span<byte> buffer, long value) { throw null; }
- [CLSCompliant(false)]
- public static void WriteUInt16LittleEndian(Span<byte> buffer, ushort value) { throw null; }
- [CLSCompliant(false)]
- public static void WriteUInt32LittleEndian(Span<byte> buffer, uint value) { throw null; }
- [CLSCompliant(false)]
- public static void WriteUInt64LittleEndian(Span<byte> buffer, ulong value) { throw null; }
-
- public static bool TryWriteInt16LittleEndian(Span<byte> buffer, short value) { throw null; }
- public static bool TryWriteInt32LittleEndian(Span<byte> buffer, int value) { throw null; }
- public static bool TryWriteInt64LittleEndian(Span<byte> buffer, long value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryWriteUInt16LittleEndian(Span<byte> buffer, ushort value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryWriteUInt32LittleEndian(Span<byte> buffer, uint value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryWriteUInt64LittleEndian(Span<byte> buffer, ulong value) { throw null; }
-
- public static void WriteInt16BigEndian(Span<byte> buffer, short value) { throw null; }
- public static void WriteInt32BigEndian(Span<byte> buffer, int value) { throw null; }
- public static void WriteInt64BigEndian(Span<byte> buffer, long value) { throw null; }
- [CLSCompliant(false)]
- public static void WriteUInt16BigEndian(Span<byte> buffer, ushort value) { throw null; }
- [CLSCompliant(false)]
- public static void WriteUInt32BigEndian(Span<byte> buffer, uint value) { throw null; }
- [CLSCompliant(false)]
- public static void WriteUInt64BigEndian(Span<byte> buffer, ulong value) { throw null; }
-
- public static bool TryWriteInt16BigEndian(Span<byte> buffer, short value) { throw null; }
- public static bool TryWriteInt32BigEndian(Span<byte> buffer, int value) { throw null; }
- public static bool TryWriteInt64BigEndian(Span<byte> buffer, long value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryWriteUInt16BigEndian(Span<byte> buffer, ushort value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryWriteUInt32BigEndian(Span<byte> buffer, uint value) { throw null; }
- [CLSCompliant(false)]
- public static bool TryWriteUInt64BigEndian(Span<byte> buffer, ulong value) { throw null; }
- }
- }
-
- namespace System.Buffers
- {
- public readonly struct StandardFormat : IEquatable<StandardFormat>
- {
- public const byte MaxPrecision = 99;
- public const byte NoPrecision = 255;
- public StandardFormat(char symbol, byte precision = 255) => throw null;
- public bool HasPrecision => throw null;
- public bool IsDefault => throw null;
- public byte Precision => throw null;
- public char Symbol => throw null;
- public static implicit operator StandardFormat(char symbol) => throw null;
- public static StandardFormat Parse(ReadOnlySpan<char> format) => throw null;
- public static StandardFormat Parse(string format) => throw null;
- public override bool Equals(object obj) => throw null;
- public override int GetHashCode() => throw null;
- public bool Equals(StandardFormat other) => throw null;
- public static bool operator ==(StandardFormat left, StandardFormat right) => throw null;
- public static bool operator !=(StandardFormat left, StandardFormat right) => throw null;
+ public static bool TryReadInt16BigEndian(System.ReadOnlySpan<byte> buffer, out short value) { throw null; }
+ public static bool TryReadInt16LittleEndian(System.ReadOnlySpan<byte> buffer, out short value) { throw null; }
+ public static bool TryReadInt32BigEndian(System.ReadOnlySpan<byte> buffer, out int value) { throw null; }
+ public static bool TryReadInt32LittleEndian(System.ReadOnlySpan<byte> buffer, out int value) { throw null; }
+ public static bool TryReadInt64BigEndian(System.ReadOnlySpan<byte> buffer, out long value) { throw null; }
+ public static bool TryReadInt64LittleEndian(System.ReadOnlySpan<byte> buffer, out long value) { throw null; }
+ public static bool TryReadMachineEndian<T>(System.ReadOnlySpan<byte> buffer, out T value) where T : struct { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryReadUInt16BigEndian(System.ReadOnlySpan<byte> buffer, out ushort value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryReadUInt16LittleEndian(System.ReadOnlySpan<byte> buffer, out ushort value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryReadUInt32BigEndian(System.ReadOnlySpan<byte> buffer, out uint value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryReadUInt32LittleEndian(System.ReadOnlySpan<byte> buffer, out uint value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryReadUInt64BigEndian(System.ReadOnlySpan<byte> buffer, out ulong value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryReadUInt64LittleEndian(System.ReadOnlySpan<byte> buffer, out ulong value) { throw null; }
+ public static bool TryWriteInt16BigEndian(System.Span<byte> buffer, short value) { throw null; }
+ public static bool TryWriteInt16LittleEndian(System.Span<byte> buffer, short value) { throw null; }
+ public static bool TryWriteInt32BigEndian(System.Span<byte> buffer, int value) { throw null; }
+ public static bool TryWriteInt32LittleEndian(System.Span<byte> buffer, int value) { throw null; }
+ public static bool TryWriteInt64BigEndian(System.Span<byte> buffer, long value) { throw null; }
+ public static bool TryWriteInt64LittleEndian(System.Span<byte> buffer, long value) { throw null; }
+ public static bool TryWriteMachineEndian<T>(System.Span<byte> buffer, ref T value) where T : struct { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryWriteUInt16BigEndian(System.Span<byte> buffer, ushort value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryWriteUInt16LittleEndian(System.Span<byte> buffer, ushort value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryWriteUInt32BigEndian(System.Span<byte> buffer, uint value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryWriteUInt32LittleEndian(System.Span<byte> buffer, uint value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryWriteUInt64BigEndian(System.Span<byte> buffer, ulong value) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryWriteUInt64LittleEndian(System.Span<byte> buffer, ulong value) { throw null; }
+ public static void WriteInt16BigEndian(System.Span<byte> buffer, short value) { }
+ public static void WriteInt16LittleEndian(System.Span<byte> buffer, short value) { }
+ public static void WriteInt32BigEndian(System.Span<byte> buffer, int value) { }
+ public static void WriteInt32LittleEndian(System.Span<byte> buffer, int value) { }
+ public static void WriteInt64BigEndian(System.Span<byte> buffer, long value) { }
+ public static void WriteInt64LittleEndian(System.Span<byte> buffer, long value) { }
+ public static void WriteMachineEndian<T>(System.Span<byte> buffer, ref T value) where T : struct { }
+ [System.CLSCompliantAttribute(false)]
+ public static void WriteUInt16BigEndian(System.Span<byte> buffer, ushort value) { }
+ [System.CLSCompliantAttribute(false)]
+ public static void WriteUInt16LittleEndian(System.Span<byte> buffer, ushort value) { }
+ [System.CLSCompliantAttribute(false)]
+ public static void WriteUInt32BigEndian(System.Span<byte> buffer, uint value) { }
+ [System.CLSCompliantAttribute(false)]
+ public static void WriteUInt32LittleEndian(System.Span<byte> buffer, uint value) { }
+ [System.CLSCompliantAttribute(false)]
+ public static void WriteUInt64BigEndian(System.Span<byte> buffer, ulong value) { }
+ [System.CLSCompliantAttribute(false)]
+ public static void WriteUInt64LittleEndian(System.Span<byte> buffer, ulong value) { }
}
}
-
namespace System.Buffers.Text
{
- public static class Base64
+ public static partial class Base64
{
- public static OperationStatus EncodeToUtf8(ReadOnlySpan<byte> bytes, Span<byte> utf8, out int consumed, out int written, bool isFinalBlock = true) { throw null; }
- public static OperationStatus EncodeToUtf8InPlace(Span<byte> buffer, int dataLength, out int written) { throw null; }
- public static int GetMaxEncodedToUtf8Length(int length) { throw null; }
- public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> utf8, Span<byte> bytes, out int consumed, out int written, bool isFinalBlock = true) { throw null; }
- public static OperationStatus DecodeFromUtf8InPlace(Span<byte> buffer, out int written) { throw null; }
+ public static System.Buffers.OperationStatus DecodeFromUtf8(System.ReadOnlySpan<byte> utf8, System.Span<byte> bytes, out int consumed, out int written, bool isFinalBlock=true) { throw null; }
+ public static System.Buffers.OperationStatus DecodeFromUtf8InPlace(System.Span<byte> buffer, out int written) { throw null; }
+ public static System.Buffers.OperationStatus EncodeToUtf8(System.ReadOnlySpan<byte> bytes, System.Span<byte> utf8, out int consumed, out int written, bool isFinalBlock=true) { throw null; }
+ public static System.Buffers.OperationStatus EncodeToUtf8InPlace(System.Span<byte> buffer, int dataLength, out int written) { throw null; }
public static int GetMaxDecodedFromUtf8Length(int length) { throw null; }
+ public static int GetMaxEncodedToUtf8Length(int length) { throw null; }
}
-
- public static class Utf8Formatter
+ public static partial class Utf8Formatter
{
- public static bool TryFormat(bool value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(byte value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(DateTime value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(DateTimeOffset value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(decimal value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(double value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(Guid value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(short value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(int value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(long value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryFormat(sbyte value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(float value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- public static bool TryFormat(TimeSpan value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryFormat(ushort value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryFormat(uint value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryFormat(ulong value, Span<byte> buffer, out int bytesWritten, StandardFormat format = default) => throw null;
+ public static bool TryFormat(bool value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(byte value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(System.DateTime value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(System.DateTimeOffset value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(decimal value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(double value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(System.Guid value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(short value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(int value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(long value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryFormat(sbyte value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(float value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ public static bool TryFormat(System.TimeSpan value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryFormat(ushort value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryFormat(uint value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryFormat(ulong value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; }
}
- public static class Utf8Parser
+ public static partial class Utf8Parser
{
- public static bool TryParse(ReadOnlySpan<byte> text, out bool value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out byte value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out DateTime value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out DateTimeOffset value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out decimal value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out double value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out Guid value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out short value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out int value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out long value, out int bytesConsumed, char standardFormat = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryParse(ReadOnlySpan<byte> text, out sbyte value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out float value, out int bytesConsumed, char standardFormat = default) => throw null;
- public static bool TryParse(ReadOnlySpan<byte> text, out TimeSpan value, out int bytesConsumed, char standardFormat = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryParse(ReadOnlySpan<byte> text, out ushort value, out int bytesConsumed, char standardFormat = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryParse(ReadOnlySpan<byte> text, out uint value, out int bytesConsumed, char standardFormat = default) => throw null;
- [CLSCompliant(false)]
- public static bool TryParse(ReadOnlySpan<byte> text, out ulong value, out int bytesConsumed, char standardFormat = default) => throw null;
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out bool value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out byte value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out System.DateTime value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out System.DateTimeOffset value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out decimal value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out double value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out System.Guid value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out short value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out int value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out long value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out sbyte value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out float value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out System.TimeSpan value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out ushort value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out uint value, out int bytesConsumed, char standardFormat='\0') { throw null; }
+ [System.CLSCompliantAttribute(false)]
+ public static bool TryParse(System.ReadOnlySpan<byte> text, out ulong value, out int bytesConsumed, char standardFormat='\0') { throw null; }
}
}
-
namespace System.Runtime.InteropServices
{
- public static class MemoryMarshal
+ public static partial class MemoryMarshal
{
- public static Memory<T> AsMemory<T>(ReadOnlyMemory<T> readOnlyMemory) { throw null; }
-
- public static ref T GetReference<T>(Span<T> span) { throw null; }
- public static ref T GetReference<T>(ReadOnlySpan<T> span) { throw null; }
-
- public static bool TryGetArray<T>(ReadOnlyMemory<T> readOnlyMemory, out ArraySegment<T> arraySegment) { throw null; }
+ public static System.Memory<T> AsMemory<T>(System.ReadOnlyMemory<T> readOnlyMemory) { throw null; }
+ public static ref T GetReference<T>(System.ReadOnlySpan<T> span) { throw null; }
+ public static ref T GetReference<T>(System.Span<T> span) { throw null; }
+ public static bool TryGetArray<T>(System.ReadOnlyMemory<T> readOnlyMemory, out System.ArraySegment<T> arraySegment) { throw null; }
}
}