// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // ------------------------------------------------------------------------------ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ namespace System { public static partial class MemoryExtensions { public static System.Memory AsMemory(this System.ArraySegment segment) { throw null; } public static System.Memory AsMemory(this System.ArraySegment segment, int start) { throw null; } public static System.Memory AsMemory(this System.ArraySegment segment, int start, int length) { throw null; } public static System.Memory AsMemory(this T[] array) { throw null; } public static System.Memory AsMemory(this T[] array, int start) { throw null; } public static System.Memory AsMemory(this T[] array, int start, int length) { throw null; } public static System.ReadOnlyMemory AsMemory(this string text) { throw null; } public static System.ReadOnlyMemory AsMemory(this string text, int start) { throw null; } public static System.ReadOnlyMemory AsMemory(this string text, int start, int length) { throw null; } public static System.ReadOnlySpan AsSpan(this string text) { throw null; } public static System.ReadOnlySpan AsSpan(this string text, int start) { throw null; } public static System.ReadOnlySpan AsSpan(this string text, int start, int length) { throw null; } public static System.Span AsSpan(this System.ArraySegment segment) { throw null; } public static System.Span AsSpan(this System.ArraySegment segment, int start) { throw null; } public static System.Span AsSpan(this System.ArraySegment segment, int start, int length) { throw null; } public static System.Span AsSpan(this T[] array) { throw null; } public static System.Span AsSpan(this T[] array, int start) { throw null; } public static System.Span AsSpan(this T[] array, int start, int length) { throw null; } public static int BinarySearch(this System.ReadOnlySpan span, System.IComparable comparable) { throw null; } public static int BinarySearch(this System.Span span, System.IComparable comparable) { throw null; } public static int BinarySearch(this System.ReadOnlySpan span, T value, TComparer comparer) where TComparer : System.Collections.Generic.IComparer { throw null; } public static int BinarySearch(this System.ReadOnlySpan span, TComparable comparable) where TComparable : System.IComparable { throw null; } public static int BinarySearch(this System.Span span, T value, TComparer comparer) where TComparer : System.Collections.Generic.IComparer { throw null; } public static int BinarySearch(this System.Span span, TComparable comparable) where TComparable : System.IComparable { throw null; } public static int CompareTo(this System.ReadOnlySpan span, System.ReadOnlySpan other, System.StringComparison comparisonType) { throw null; } public static bool Contains(this System.ReadOnlySpan span, System.ReadOnlySpan value, System.StringComparison comparisonType) { throw null; } public static void CopyTo(this T[] source, System.Memory destination) { } public static void CopyTo(this T[] source, System.Span destination) { } public static bool EndsWith(this System.ReadOnlySpan span, System.ReadOnlySpan value, System.StringComparison comparisonType) { throw null; } public static bool EndsWith(this System.ReadOnlySpan span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static bool EndsWith(this System.Span span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static bool Equals(this System.ReadOnlySpan span, System.ReadOnlySpan other, System.StringComparison comparisonType) { throw null; } public static int IndexOf(this System.ReadOnlySpan span, System.ReadOnlySpan value, System.StringComparison comparisonType) { throw null; } public static int IndexOfAny(this System.ReadOnlySpan span, System.ReadOnlySpan values) where T : System.IEquatable { throw null; } public static int IndexOfAny(this System.ReadOnlySpan span, T value0, T value1) where T : System.IEquatable { throw null; } public static int IndexOfAny(this System.ReadOnlySpan span, T value0, T value1, T value2) where T : System.IEquatable { throw null; } public static int IndexOfAny(this System.Span span, System.ReadOnlySpan values) where T : System.IEquatable { throw null; } public static int IndexOfAny(this System.Span span, T value0, T value1) where T : System.IEquatable { throw null; } public static int IndexOfAny(this System.Span span, T value0, T value1, T value2) where T : System.IEquatable { throw null; } public static int IndexOf(this System.ReadOnlySpan span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static int IndexOf(this System.ReadOnlySpan span, T value) where T : System.IEquatable { throw null; } public static int IndexOf(this System.Span span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static int IndexOf(this System.Span span, T value) where T : System.IEquatable { throw null; } public static bool IsWhiteSpace(this System.ReadOnlySpan span) { throw null; } public static int LastIndexOfAny(this System.ReadOnlySpan span, System.ReadOnlySpan values) where T : System.IEquatable { throw null; } public static int LastIndexOfAny(this System.ReadOnlySpan span, T value0, T value1) where T : System.IEquatable { throw null; } public static int LastIndexOfAny(this System.ReadOnlySpan span, T value0, T value1, T value2) where T : System.IEquatable { throw null; } public static int LastIndexOfAny(this System.Span span, System.ReadOnlySpan values) where T : System.IEquatable { throw null; } public static int LastIndexOfAny(this System.Span span, T value0, T value1) where T : System.IEquatable { throw null; } public static int LastIndexOfAny(this System.Span span, T value0, T value1, T value2) where T : System.IEquatable { throw null; } public static int LastIndexOf(this System.ReadOnlySpan span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static int LastIndexOf(this System.ReadOnlySpan span, T value) where T : System.IEquatable { throw null; } public static int LastIndexOf(this System.Span span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static int LastIndexOf(this System.Span span, T value) where T : System.IEquatable { throw null; } public static bool Overlaps(this System.ReadOnlySpan span, System.ReadOnlySpan other) { throw null; } public static bool Overlaps(this System.ReadOnlySpan span, System.ReadOnlySpan other, out int elementOffset) { throw null; } public static bool Overlaps(this System.Span span, System.ReadOnlySpan other) { throw null; } public static bool Overlaps(this System.Span span, System.ReadOnlySpan other, out int elementOffset) { throw null; } public static void Reverse(this System.Span span) { } public static int SequenceCompareTo(this System.ReadOnlySpan span, System.ReadOnlySpan other) where T : System.IComparable { throw null; } public static int SequenceCompareTo(this System.Span span, System.ReadOnlySpan other) where T : System.IComparable { throw null; } public static bool SequenceEqual(this System.ReadOnlySpan span, System.ReadOnlySpan other) where T : System.IEquatable { throw null; } public static bool SequenceEqual(this System.Span span, System.ReadOnlySpan other) where T : System.IEquatable { throw null; } public static bool StartsWith(this System.ReadOnlySpan span, System.ReadOnlySpan value, System.StringComparison comparisonType) { throw null; } public static bool StartsWith(this System.ReadOnlySpan span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static bool StartsWith(this System.Span span, System.ReadOnlySpan value) where T : System.IEquatable { throw null; } public static int ToLower(this System.ReadOnlySpan source, System.Span destination, System.Globalization.CultureInfo culture) { throw null; } public static int ToLowerInvariant(this System.ReadOnlySpan source, System.Span destination) { throw null; } public static int ToUpper(this System.ReadOnlySpan source, System.Span destination, System.Globalization.CultureInfo culture) { throw null; } public static int ToUpperInvariant(this System.ReadOnlySpan source, System.Span destination) { throw null; } public static System.ReadOnlySpan Trim(this System.ReadOnlySpan span) { throw null; } public static System.ReadOnlySpan Trim(this System.ReadOnlySpan span, char trimChar) { throw null; } public static System.ReadOnlySpan Trim(this System.ReadOnlySpan span, System.ReadOnlySpan trimChars) { throw null; } public static System.ReadOnlySpan TrimEnd(this System.ReadOnlySpan span) { throw null; } public static System.ReadOnlySpan TrimEnd(this System.ReadOnlySpan span, char trimChar) { throw null; } public static System.ReadOnlySpan TrimEnd(this System.ReadOnlySpan span, System.ReadOnlySpan trimChars) { throw null; } public static System.ReadOnlySpan TrimStart(this System.ReadOnlySpan span) { throw null; } public static System.ReadOnlySpan TrimStart(this System.ReadOnlySpan span, char trimChar) { throw null; } public static System.ReadOnlySpan TrimStart(this System.ReadOnlySpan span, System.ReadOnlySpan trimChars) { throw null; } } public readonly partial struct Memory { private readonly object _dummy; public Memory(T[] array) { throw null; } public Memory(T[] array, int start, int length) { throw null; } public static System.Memory Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } public int Length { get { throw null; } } public System.Span Span { get { throw null; } } public void CopyTo(System.Memory destination) { } public bool Equals(System.Memory other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public override int GetHashCode() { throw null; } public static implicit operator System.Memory (System.ArraySegment segment) { throw null; } public static implicit operator System.ReadOnlyMemory (System.Memory memory) { throw null; } public static implicit operator System.Memory (T[] array) { throw null; } public System.Buffers.MemoryHandle Retain(bool pin = false) { throw null; } public System.Memory Slice(int start) { throw null; } public System.Memory Slice(int start, int length) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory destination) { throw null; } } public readonly partial struct ReadOnlyMemory { private readonly object _dummy; public ReadOnlyMemory(T[] array) { throw null; } public ReadOnlyMemory(T[] array, int start, int length) { throw null; } public static System.ReadOnlyMemory Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } public int Length { get { throw null; } } public System.ReadOnlySpan Span { get { throw null; } } public void CopyTo(System.Memory destination) { } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public override bool Equals(object obj) { throw null; } public bool Equals(System.ReadOnlyMemory other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public override int GetHashCode() { throw null; } public static implicit operator System.ReadOnlyMemory (System.ArraySegment segment) { throw null; } public static implicit operator System.ReadOnlyMemory (T[] array) { throw null; } public System.Buffers.MemoryHandle Retain(bool pin = false) { throw null; } public System.ReadOnlyMemory Slice(int start) { throw null; } public System.ReadOnlyMemory Slice(int start, int length) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Memory destination) { throw null; } } public readonly ref partial struct ReadOnlySpan { private readonly object _dummy; [System.CLSCompliantAttribute(false)] public unsafe ReadOnlySpan(void* pointer, int length) { throw null; } public ReadOnlySpan(T[] array) { throw null; } public ReadOnlySpan(T[] array, int start, int length) { throw null; } public static System.ReadOnlySpan Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } public ref readonly T this[int index] { get { throw null; } } public int Length { get { throw null; } } public void CopyTo(System.Span destination) { } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] [System.ObsoleteAttribute("Equals() on ReadOnlySpan will always throw an exception. Use == instead.")] public override bool Equals(object obj) { throw null; } public System.ReadOnlySpan.Enumerator GetEnumerator() { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] [System.ObsoleteAttribute("GetHashCode() on ReadOnlySpan will always throw an exception.")] public override int GetHashCode() { throw null; } public static bool operator ==(System.ReadOnlySpan left, System.ReadOnlySpan right) { throw null; } public static implicit operator System.ReadOnlySpan (System.ArraySegment segment) { throw null; } public static implicit operator System.ReadOnlySpan (T[] array) { throw null; } public static bool operator !=(System.ReadOnlySpan left, System.ReadOnlySpan right) { throw null; } public System.ReadOnlySpan Slice(int start) { throw null; } public System.ReadOnlySpan Slice(int start, int length) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span destination) { throw null; } public ref partial struct Enumerator { private object _dummy; public ref readonly T Current { get { throw null; } } public bool MoveNext() { throw null; } } } public readonly partial struct SequencePosition : System.IEquatable { private readonly object _dummy; public SequencePosition(object segment, int index) { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public int GetInteger() { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public object GetObject() { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] public override bool Equals(object obj) { throw null; } public bool Equals(System.SequencePosition other) { throw null; } public override int GetHashCode() { throw null; } public static bool operator ==(System.SequencePosition left, System.SequencePosition right) { throw null; } public static bool operator !=(System.SequencePosition left, System.SequencePosition right) { throw null; } public override string ToString() { throw null; } } public readonly ref partial struct Span { private readonly object _dummy; [System.CLSCompliantAttribute(false)] public unsafe Span(void* pointer, int length) { throw null; } public Span(T[] array) { throw null; } public Span(T[] array, int start, int length) { throw null; } public static System.Span Empty { get { throw null; } } public bool IsEmpty { get { throw null; } } public ref T this[int index] { get { throw null; } } public int Length { get { throw null; } } public void Clear() { } public void CopyTo(System.Span destination) { } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] public override bool Equals(object obj) { throw null; } public void Fill(T value) { } public System.Span.Enumerator GetEnumerator() { throw null; } [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] public override int GetHashCode() { throw null; } public static bool operator ==(System.Span left, System.Span right) { throw null; } public static implicit operator System.Span (System.ArraySegment segment) { throw null; } public static implicit operator System.ReadOnlySpan (System.Span span) { throw null; } public static implicit operator System.Span (T[] array) { throw null; } public static bool operator !=(System.Span left, System.Span right) { throw null; } public System.Span Slice(int start) { throw null; } public System.Span Slice(int start, int length) { throw null; } public T[] ToArray() { throw null; } public override string ToString() { throw null; } public bool TryCopyTo(System.Span destination) { throw null; } public ref partial struct Enumerator { private object _dummy; public ref T Current { get { throw null; } } public bool MoveNext() { throw null; } } } } namespace System.Buffers { public partial interface IBufferWriter { void Advance(int count); System.Memory GetMemory(int sizeHint = 0); System.Span GetSpan(int sizeHint = 0); } public abstract partial class ReadOnlySequenceSegment { public System.ReadOnlyMemory Memory { get; protected set; } public System.Buffers.ReadOnlySequenceSegment Next { get; protected set; } public long RunningIndex { get; protected set; } } public partial interface IRetainable { bool Release(); void Retain(); } public partial struct MemoryHandle : System.IDisposable { private object _dummy; [System.CLSCompliantAttribute(false)] public unsafe MemoryHandle(System.Buffers.IRetainable retainable, void* pointer = null, System.Runtime.InteropServices.GCHandle handle = default(System.Runtime.InteropServices.GCHandle)) { throw null; } public bool HasPointer { get { throw null; } } [System.CLSCompliantAttribute(false)] public unsafe void* Pointer { get { throw null; } } public void Dispose() { } } public abstract partial class MemoryPool : System.IDisposable { protected MemoryPool() { } public abstract int MaxBufferSize { get; } public static System.Buffers.MemoryPool Shared { get { throw null; } } public void Dispose() { } protected abstract void Dispose(bool disposing); public abstract System.Buffers.OwnedMemory Rent(int minBufferSize = -1); } public enum OperationStatus { DestinationTooSmall = 1, Done = 0, InvalidData = 3, NeedMoreData = 2, } public abstract partial class OwnedMemory : System.Buffers.IRetainable, System.IDisposable { protected OwnedMemory() { } public abstract bool IsDisposed { get; } protected abstract bool IsRetained { get; } public abstract int Length { get; } public System.Memory Memory { get { throw null; } } public abstract System.Span Span { get; } public void Dispose() { } protected abstract void Dispose(bool disposing); public abstract System.Buffers.MemoryHandle Pin(int byteOffset = 0); public abstract bool Release(); public abstract void Retain(); protected internal abstract bool TryGetArray(out System.ArraySegment segment); } public static partial class BuffersExtensions { public static void CopyTo(in this System.Buffers.ReadOnlySequence source, System.Span destination) { } public static System.Nullable PositionOf(in this System.Buffers.ReadOnlySequence source, T value) where T : System.IEquatable { throw null; } public static T[] ToArray(in this System.Buffers.ReadOnlySequence sequence) { throw null; } public static void Write(this System.Buffers.IBufferWriter writer, ReadOnlySpan value) { } } public readonly partial struct ReadOnlySequence { private readonly object _dummy; public static readonly System.Buffers.ReadOnlySequence Empty; public ReadOnlySequence(System.Buffers.ReadOnlySequenceSegment startSegment, int startIndex, System.Buffers.ReadOnlySequenceSegment endSegment, int endIndex) { throw null; } public ReadOnlySequence(T[] array) { throw null; } public ReadOnlySequence(T[] array, int start, int length) { throw null; } public ReadOnlySequence(System.ReadOnlyMemory memory) { throw null; } public ReadOnlySequence(System.Buffers.OwnedMemory memory) { throw null; } public ReadOnlySequence(System.Buffers.OwnedMemory memory, int start, int length) { throw null; } public System.SequencePosition End { get { throw null; } } public System.ReadOnlyMemory First { get { throw null; } } public bool IsEmpty { get { throw null; } } public bool IsSingleSegment { get { throw null; } } public long Length { get { throw null; } } public System.SequencePosition Start { get { throw null; } } public System.Buffers.ReadOnlySequence.Enumerator GetEnumerator() { throw null; } public System.SequencePosition GetPosition(long offset) { throw null; } public System.SequencePosition GetPosition(long offset, System.SequencePosition origin) { throw null; } public System.Buffers.ReadOnlySequence Slice(int start, int length) { throw null; } public System.Buffers.ReadOnlySequence Slice(int start, System.SequencePosition end) { throw null; } public System.Buffers.ReadOnlySequence Slice(long start) { throw null; } public System.Buffers.ReadOnlySequence Slice(long start, long length) { throw null; } public System.Buffers.ReadOnlySequence Slice(long start, System.SequencePosition end) { throw null; } public System.Buffers.ReadOnlySequence Slice(System.SequencePosition start) { throw null; } public System.Buffers.ReadOnlySequence Slice(System.SequencePosition start, int length) { throw null; } public System.Buffers.ReadOnlySequence Slice(System.SequencePosition start, long length) { throw null; } public System.Buffers.ReadOnlySequence Slice(System.SequencePosition start, System.SequencePosition end) { throw null; } public override string ToString() { throw null; } public bool TryGet(ref System.SequencePosition position, out System.ReadOnlyMemory memory, bool advance = true) { throw null; } public partial struct Enumerator { private object _dummy; public Enumerator(in System.Buffers.ReadOnlySequence sequence) { throw null; } public System.ReadOnlyMemory Current { get { throw null; } } public bool MoveNext() { throw null; } } } public readonly partial struct StandardFormat : System.IEquatable { 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 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 partial class BinaryPrimitives { public static short ReadInt16BigEndian(System.ReadOnlySpan source) { throw null; } public static short ReadInt16LittleEndian(System.ReadOnlySpan source) { throw null; } public static int ReadInt32BigEndian(System.ReadOnlySpan source) { throw null; } public static int ReadInt32LittleEndian(System.ReadOnlySpan source) { throw null; } public static long ReadInt64BigEndian(System.ReadOnlySpan source) { throw null; } public static long ReadInt64LittleEndian(System.ReadOnlySpan source) { throw null; } [System.CLSCompliantAttribute(false)] public static ushort ReadUInt16BigEndian(System.ReadOnlySpan source) { throw null; } [System.CLSCompliantAttribute(false)] public static ushort ReadUInt16LittleEndian(System.ReadOnlySpan source) { throw null; } [System.CLSCompliantAttribute(false)] public static uint ReadUInt32BigEndian(System.ReadOnlySpan source) { throw null; } [System.CLSCompliantAttribute(false)] public static uint ReadUInt32LittleEndian(System.ReadOnlySpan source) { throw null; } [System.CLSCompliantAttribute(false)] public static ulong ReadUInt64BigEndian(System.ReadOnlySpan source) { throw null; } [System.CLSCompliantAttribute(false)] public static ulong ReadUInt64LittleEndian(System.ReadOnlySpan source) { throw null; } public static byte ReverseEndianness(byte value) { throw null; } public static short ReverseEndianness(short value) { throw null; } public static int ReverseEndianness(int value) { throw null; } public static long ReverseEndianness(long value) { throw null; } [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 bool TryReadInt16BigEndian(System.ReadOnlySpan source, out short value) { throw null; } public static bool TryReadInt16LittleEndian(System.ReadOnlySpan source, out short value) { throw null; } public static bool TryReadInt32BigEndian(System.ReadOnlySpan source, out int value) { throw null; } public static bool TryReadInt32LittleEndian(System.ReadOnlySpan source, out int value) { throw null; } public static bool TryReadInt64BigEndian(System.ReadOnlySpan source, out long value) { throw null; } public static bool TryReadInt64LittleEndian(System.ReadOnlySpan source, out long value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryReadUInt16BigEndian(System.ReadOnlySpan source, out ushort value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryReadUInt16LittleEndian(System.ReadOnlySpan source, out ushort value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryReadUInt32BigEndian(System.ReadOnlySpan source, out uint value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryReadUInt32LittleEndian(System.ReadOnlySpan source, out uint value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryReadUInt64BigEndian(System.ReadOnlySpan source, out ulong value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryReadUInt64LittleEndian(System.ReadOnlySpan source, out ulong value) { throw null; } public static bool TryWriteInt16BigEndian(System.Span destination, short value) { throw null; } public static bool TryWriteInt16LittleEndian(System.Span destination, short value) { throw null; } public static bool TryWriteInt32BigEndian(System.Span destination, int value) { throw null; } public static bool TryWriteInt32LittleEndian(System.Span destination, int value) { throw null; } public static bool TryWriteInt64BigEndian(System.Span destination, long value) { throw null; } public static bool TryWriteInt64LittleEndian(System.Span destination, long value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryWriteUInt16BigEndian(System.Span destination, ushort value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryWriteUInt16LittleEndian(System.Span destination, ushort value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryWriteUInt32BigEndian(System.Span destination, uint value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryWriteUInt32LittleEndian(System.Span destination, uint value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryWriteUInt64BigEndian(System.Span destination, ulong value) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryWriteUInt64LittleEndian(System.Span destination, ulong value) { throw null; } public static void WriteInt16BigEndian(System.Span destination, short value) { } public static void WriteInt16LittleEndian(System.Span destination, short value) { } public static void WriteInt32BigEndian(System.Span destination, int value) { } public static void WriteInt32LittleEndian(System.Span destination, int value) { } public static void WriteInt64BigEndian(System.Span destination, long value) { } public static void WriteInt64LittleEndian(System.Span destination, long value) { } [System.CLSCompliantAttribute(false)] public static void WriteUInt16BigEndian(System.Span destination, ushort value) { } [System.CLSCompliantAttribute(false)] public static void WriteUInt16LittleEndian(System.Span destination, ushort value) { } [System.CLSCompliantAttribute(false)] public static void WriteUInt32BigEndian(System.Span destination, uint value) { } [System.CLSCompliantAttribute(false)] public static void WriteUInt32LittleEndian(System.Span destination, uint value) { } [System.CLSCompliantAttribute(false)] public static void WriteUInt64BigEndian(System.Span destination, ulong value) { } [System.CLSCompliantAttribute(false)] public static void WriteUInt64LittleEndian(System.Span destination, ulong value) { } } } namespace System.Buffers.Text { public static partial class Base64 { public static System.Buffers.OperationStatus DecodeFromUtf8(System.ReadOnlySpan utf8, System.Span bytes, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) { throw null; } public static System.Buffers.OperationStatus DecodeFromUtf8InPlace(System.Span buffer, out int bytesWritten) { throw null; } public static System.Buffers.OperationStatus EncodeToUtf8(System.ReadOnlySpan bytes, System.Span utf8, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) { throw null; } public static System.Buffers.OperationStatus EncodeToUtf8InPlace(System.Span buffer, int dataLength, out int bytesWritten) { throw null; } public static int GetMaxDecodedFromUtf8Length(int length) { throw null; } public static int GetMaxEncodedToUtf8Length(int length) { throw null; } } public static partial class Utf8Formatter { public static bool TryFormat(bool value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(byte value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(System.DateTime value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(System.DateTimeOffset value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(decimal value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(double value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(System.Guid value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(short value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(int value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(long value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryFormat(sbyte value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(float value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } public static bool TryFormat(System.TimeSpan value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryFormat(ushort value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryFormat(uint value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryFormat(ulong value, System.Span destination, out int bytesWritten, System.Buffers.StandardFormat format = default(System.Buffers.StandardFormat)) { throw null; } } public static partial class Utf8Parser { public static bool TryParse(System.ReadOnlySpan source, out bool value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out byte value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out System.DateTime value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out System.DateTimeOffset value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out decimal value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out double value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out System.Guid value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out short value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out int value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out long value, out int bytesConsumed, char standardFormat = '\0') { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryParse(System.ReadOnlySpan source, out sbyte value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out float value, out int bytesConsumed, char standardFormat = '\0') { throw null; } public static bool TryParse(System.ReadOnlySpan source, out System.TimeSpan value, out int bytesConsumed, char standardFormat = '\0') { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryParse(System.ReadOnlySpan source, out ushort value, out int bytesConsumed, char standardFormat = '\0') { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryParse(System.ReadOnlySpan source, out uint value, out int bytesConsumed, char standardFormat = '\0') { throw null; } [System.CLSCompliantAttribute(false)] public static bool TryParse(System.ReadOnlySpan source, out ulong value, out int bytesConsumed, char standardFormat = '\0') { throw null; } } } namespace System.Runtime.InteropServices { public static partial class MemoryMarshal { public static System.ReadOnlySpan AsBytes(System.ReadOnlySpan span) where T : struct { throw null; } public static System.Span AsBytes(System.Span span) where T : struct { throw null; } public static System.Memory AsMemory(System.ReadOnlyMemory memory) { throw null; } public static System.ReadOnlySpan Cast(System.ReadOnlySpan span) where TFrom : struct where TTo : struct { throw null; } public static System.Span Cast(System.Span span) where TFrom : struct where TTo : struct { throw null; } #if !FEATURE_PORTABLE_SPAN public static System.ReadOnlySpan CreateReadOnlySpan(ref T reference, int length) { throw null; } public static System.Span CreateSpan(ref T reference, int length) { throw null; } #endif public static ref T GetReference(System.ReadOnlySpan span) { throw null; } public static ref T GetReference(System.Span span) { throw null; } public static T Read(System.ReadOnlySpan source) where T : struct { throw null; } public static System.Collections.Generic.IEnumerable ToEnumerable(System.ReadOnlyMemory memory) { throw null; } public static bool TryGetArray(System.ReadOnlyMemory memory, out System.ArraySegment segment) { throw null; } public static bool TryGetOwnedMemory(ReadOnlyMemory memory, out TOwner owner) where TOwner : System.Buffers.OwnedMemory { throw null; } public static bool TryGetOwnedMemory(ReadOnlyMemory memory, out TOwner owner, out int start, out int length) where TOwner : System.Buffers.OwnedMemory { throw null; } public static bool TryGetString(System.ReadOnlyMemory memory, out string text, out int start, out int length) { throw null; } public static bool TryRead(System.ReadOnlySpan source, out T value) where T : struct { throw null; } public static bool TryWrite(System.Span destination, ref T value) where T : struct { throw null; } public static void Write(System.Span destination, ref T value) where T : struct { } } public static partial class SequenceMarshal { public static bool TryGetArray(System.Buffers.ReadOnlySequence sequence, out System.ArraySegment segment) { throw null; } public static bool TryGetReadOnlySequenceSegment(System.Buffers.ReadOnlySequence sequence, out System.Buffers.ReadOnlySequenceSegment startSegment, out int startIndex, out System.Buffers.ReadOnlySequenceSegment endSegment, out int endIndex) { throw null; } public static bool TryGetOwnedMemory(System.Buffers.ReadOnlySequence sequence, out System.Buffers.OwnedMemory ownedMemory, out int start, out int length) { throw null; } public static bool TryGetReadOnlyMemory(System.Buffers.ReadOnlySequence sequence, out System.ReadOnlyMemory memory) { throw null; } } }