1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 // ------------------------------------------------------------------------------ 5 // Changes to this file must follow the http://aka.ms/api-review process. 6 // ------------------------------------------------------------------------------ 7 8 namespace System 9 { 10 public static partial class MemoryExtensions 11 { 12 public static System.ReadOnlySpan<byte> AsBytes<T>(this System.ReadOnlySpan<T> source) where T : struct { throw null; } 13 public static System.Span<byte> AsBytes<T>(this System.Span<T> source) where T : struct { throw null; } AsReadOnlyMemory(this string text)14 public static System.ReadOnlyMemory<char> AsReadOnlyMemory(this string text) { throw null; } AsReadOnlyMemory(this string text, int start)15 public static System.ReadOnlyMemory<char> AsReadOnlyMemory(this string text, int start) { throw null; } AsReadOnlyMemory(this string text, int start, int length)16 public static System.ReadOnlyMemory<char> AsReadOnlyMemory(this string text, int start, int length) { throw null; } AsReadOnlyMemory(this System.Memory<T> memory)17 public static System.ReadOnlyMemory<T> AsReadOnlyMemory<T>(this System.Memory<T> memory) { throw null; } AsReadOnlySpan(this string text)18 public static System.ReadOnlySpan<char> AsReadOnlySpan(this string text) { throw null; } AsReadOnlySpan(this string text, int start)19 public static System.ReadOnlySpan<char> AsReadOnlySpan(this string text, int start) { throw null; } AsReadOnlySpan(this string text, int start, int length)20 public static System.ReadOnlySpan<char> AsReadOnlySpan(this string text, int start, int length) { throw null; } AsReadOnlySpan(this System.ArraySegment<T> arraySegment)21 public static System.ReadOnlySpan<T> AsReadOnlySpan<T>(this System.ArraySegment<T> arraySegment) { throw null; } AsReadOnlySpan(this System.Span<T> span)22 public static System.ReadOnlySpan<T> AsReadOnlySpan<T>(this System.Span<T> span) { throw null; } AsReadOnlySpan(this T[] array)23 public static System.ReadOnlySpan<T> AsReadOnlySpan<T>(this T[] array) { throw null; } AsSpan(this System.ArraySegment<T> arraySegment)24 public static System.Span<T> AsSpan<T>(this System.ArraySegment<T> arraySegment) { throw null; } AsSpan(this T[] array)25 public static System.Span<T> AsSpan<T>(this T[] array) { throw null; } BinarySearch(this System.ReadOnlySpan<T> span, System.IComparable<T> comparable)26 public static int BinarySearch<T>(this System.ReadOnlySpan<T> span, System.IComparable<T> comparable) { throw null; } BinarySearch(this System.Span<T> span, System.IComparable<T> comparable)27 public static int BinarySearch<T>(this System.Span<T> span, System.IComparable<T> comparable) { throw null; } 28 public static int BinarySearch<T, TComparer>(this System.ReadOnlySpan<T> span, T value, TComparer comparer) where TComparer : System.Collections.Generic.IComparer<T> { throw null; } 29 public static int BinarySearch<T, TComparable>(this System.ReadOnlySpan<T> span, TComparable comparable) where TComparable : System.IComparable<T> { throw null; } 30 public static int BinarySearch<T, TComparer>(this System.Span<T> span, T value, TComparer comparer) where TComparer : System.Collections.Generic.IComparer<T> { throw null; } 31 public static int BinarySearch<T, TComparable>(this System.Span<T> span, TComparable comparable) where TComparable : System.IComparable<T> { throw null; } CopyTo(this T[] array, System.Memory<T> destination)32 public static void CopyTo<T>(this T[] array, System.Memory<T> destination) { } CopyTo(this T[] array, System.Span<T> destination)33 public static void CopyTo<T>(this T[] array, System.Span<T> destination) { } 34 public static bool EndsWith<T>(this System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } 35 public static bool EndsWith<T>(this System.Span<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } 36 public static int IndexOfAny<T>(this System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> values) where T : System.IEquatable<T> { throw null; } 37 public static int IndexOfAny<T>(this System.ReadOnlySpan<T> span, T value0, T value1) where T : System.IEquatable<T> { throw null; } 38 public static int IndexOfAny<T>(this System.ReadOnlySpan<T> span, T value0, T value1, T value2) where T : System.IEquatable<T> { throw null; } 39 public static int IndexOfAny<T>(this System.Span<T> span, System.ReadOnlySpan<T> values) where T : System.IEquatable<T> { throw null; } 40 public static int IndexOfAny<T>(this System.Span<T> span, T value0, T value1) where T : System.IEquatable<T> { throw null; } 41 public static int IndexOfAny<T>(this System.Span<T> span, T value0, T value1, T value2) where T : System.IEquatable<T> { throw null; } 42 public static int IndexOf<T>(this System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } 43 public static int IndexOf<T>(this System.ReadOnlySpan<T> span, T value) where T : System.IEquatable<T> { throw null; } 44 public static int IndexOf<T>(this System.Span<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } 45 public static int IndexOf<T>(this System.Span<T> span, T value) where T : System.IEquatable<T> { throw null; } 46 public static int LastIndexOfAny<T>(this System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> values) where T : System.IEquatable<T> { throw null; } 47 public static int LastIndexOfAny<T>(this System.ReadOnlySpan<T> span, T value0, T value1) where T : System.IEquatable<T> { throw null; } 48 public static int LastIndexOfAny<T>(this System.ReadOnlySpan<T> span, T value0, T value1, T value2) where T : System.IEquatable<T> { throw null; } 49 public static int LastIndexOfAny<T>(this System.Span<T> span, System.ReadOnlySpan<T> values) where T : System.IEquatable<T> { throw null; } 50 public static int LastIndexOfAny<T>(this System.Span<T> span, T value0, T value1) where T : System.IEquatable<T> { throw null; } 51 public static int LastIndexOfAny<T>(this System.Span<T> span, T value0, T value1, T value2) where T : System.IEquatable<T> { throw null; } 52 public static int LastIndexOf<T>(this System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } 53 public static int LastIndexOf<T>(this System.ReadOnlySpan<T> span, T value) where T : System.IEquatable<T> { throw null; } 54 public static int LastIndexOf<T>(this System.Span<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } 55 public static int LastIndexOf<T>(this System.Span<T> span, T value) where T : System.IEquatable<T> { throw null; } 56 public static System.ReadOnlySpan<TTo> NonPortableCast<TFrom, TTo>(this System.ReadOnlySpan<TFrom> source) where TFrom : struct where TTo : struct { throw null; } 57 public static System.Span<TTo> NonPortableCast<TFrom, TTo>(this System.Span<TFrom> source) where TFrom : struct where TTo : struct { throw null; } Overlaps(this System.ReadOnlySpan<T> first, System.ReadOnlySpan<T> second)58 public static bool Overlaps<T>(this System.ReadOnlySpan<T> first, System.ReadOnlySpan<T> second) { throw null; } Overlaps(this System.ReadOnlySpan<T> first, System.ReadOnlySpan<T> second, out int elementOffset)59 public static bool Overlaps<T>(this System.ReadOnlySpan<T> first, System.ReadOnlySpan<T> second, out int elementOffset) { throw null; } Overlaps(this System.Span<T> first, System.ReadOnlySpan<T> second)60 public static bool Overlaps<T>(this System.Span<T> first, System.ReadOnlySpan<T> second) { throw null; } Overlaps(this System.Span<T> first, System.ReadOnlySpan<T> second, out int elementOffset)61 public static bool Overlaps<T>(this System.Span<T> first, System.ReadOnlySpan<T> second, out int elementOffset) { throw null; } Reverse(this System.Span<T> span)62 public static void Reverse<T>(this System.Span<T> span) { } 63 public static int SequenceCompareTo<T>(this System.ReadOnlySpan<T> first, System.ReadOnlySpan<T> second) where T : System.IComparable<T> { throw null; } 64 public static int SequenceCompareTo<T>(this System.Span<T> first, System.ReadOnlySpan<T> second) where T : System.IComparable<T> { throw null; } 65 public static bool SequenceEqual<T>(this System.ReadOnlySpan<T> first, System.ReadOnlySpan<T> second) where T : System.IEquatable<T> { throw null; } 66 public static bool SequenceEqual<T>(this System.Span<T> first, System.ReadOnlySpan<T> second) where T : System.IEquatable<T> { throw null; } 67 public static bool StartsWith<T>(this System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } 68 public static bool StartsWith<T>(this System.Span<T> span, System.ReadOnlySpan<T> value) where T : System.IEquatable<T> { throw null; } TryGetString(this System.ReadOnlyMemory<char> readOnlyMemory, out string text, out int start, out int length)69 public static bool TryGetString(this System.ReadOnlyMemory<char> readOnlyMemory, out string text, out int start, out int length) { throw null; } 70 } 71 public readonly partial struct Memory<T> 72 { 73 private readonly object _dummy; MemorySystem.Memory74 public Memory(T[] array) { throw null; } MemorySystem.Memory75 public Memory(T[] array, int start, int length) { throw null; } 76 public static System.Memory<T> Empty { get { throw null; } } 77 public bool IsEmpty { get { throw null; } } 78 public int Length { get { throw null; } } 79 public System.Span<T> Span { get { throw null; } } CopyToSystem.Memory80 public void CopyTo(System.Memory<T> destination) { } EqualsSystem.Memory81 public bool Equals(System.Memory<T> other) { throw null; } 82 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] EqualsSystem.Memory83 public override bool Equals(object obj) { throw null; } 84 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] GetHashCodeSystem.Memory85 public override int GetHashCode() { throw null; } operator System.Memory<T>System.Memory86 public static implicit operator System.Memory<T> (System.ArraySegment<T> arraySegment) { throw null; } operator System.ReadOnlyMemory<T>System.Memory87 public static implicit operator System.ReadOnlyMemory<T> (System.Memory<T> memory) { throw null; } operator System.Memory<T>System.Memory88 public static implicit operator System.Memory<T> (T[] array) { throw null; } RetainSystem.Memory89 public System.Buffers.MemoryHandle Retain(bool pin=false) { throw null; } SliceSystem.Memory90 public System.Memory<T> Slice(int start) { throw null; } SliceSystem.Memory91 public System.Memory<T> Slice(int start, int length) { throw null; } ToArraySystem.Memory92 public T[] ToArray() { throw null; } TryCopyToSystem.Memory93 public bool TryCopyTo(System.Memory<T> destination) { throw null; } TryGetArraySystem.Memory94 public bool TryGetArray(out System.ArraySegment<T> arraySegment) { throw null; } 95 } 96 public readonly partial struct ReadOnlyMemory<T> 97 { 98 private readonly object _dummy; ReadOnlyMemorySystem.ReadOnlyMemory99 public ReadOnlyMemory(T[] array) { throw null; } ReadOnlyMemorySystem.ReadOnlyMemory100 public ReadOnlyMemory(T[] array, int start, int length) { throw null; } 101 public static System.ReadOnlyMemory<T> Empty { get { throw null; } } 102 public bool IsEmpty { get { throw null; } } 103 public int Length { get { throw null; } } 104 public System.ReadOnlySpan<T> Span { get { throw null; } } CopyToSystem.ReadOnlyMemory105 public void CopyTo(System.Memory<T> destination) { } 106 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] EqualsSystem.ReadOnlyMemory107 public override bool Equals(object obj) { throw null; } EqualsSystem.ReadOnlyMemory108 public bool Equals(System.ReadOnlyMemory<T> other) { throw null; } 109 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] GetHashCodeSystem.ReadOnlyMemory110 public override int GetHashCode() { throw null; } operator System.ReadOnlyMemory<T>System.ReadOnlyMemory111 public static implicit operator System.ReadOnlyMemory<T> (System.ArraySegment<T> arraySegment) { throw null; } operator System.ReadOnlyMemory<T>System.ReadOnlyMemory112 public static implicit operator System.ReadOnlyMemory<T> (T[] array) { throw null; } RetainSystem.ReadOnlyMemory113 public System.Buffers.MemoryHandle Retain(bool pin=false) { throw null; } SliceSystem.ReadOnlyMemory114 public System.ReadOnlyMemory<T> Slice(int start) { throw null; } SliceSystem.ReadOnlyMemory115 public System.ReadOnlyMemory<T> Slice(int start, int length) { throw null; } ToArraySystem.ReadOnlyMemory116 public T[] ToArray() { throw null; } TryCopyToSystem.ReadOnlyMemory117 public bool TryCopyTo(System.Memory<T> destination) { throw null; } 118 } 119 public readonly ref partial struct ReadOnlySpan<T> 120 { 121 private readonly object _dummy; 122 [System.CLSCompliantAttribute(false)] ReadOnlySpanSystem.ReadOnlySpan123 public unsafe ReadOnlySpan(void* pointer, int length) { throw null; } ReadOnlySpanSystem.ReadOnlySpan124 public ReadOnlySpan(T[] array) { throw null; } ReadOnlySpanSystem.ReadOnlySpan125 public ReadOnlySpan(T[] array, int start, int length) { throw null; } 126 public static System.ReadOnlySpan<T> Empty { get { throw null; } } 127 public bool IsEmpty { get { throw null; } } 128 public ref readonly T this[int index] { get { throw null; } } 129 public int Length { get { throw null; } } CopyToSystem.ReadOnlySpan130 public void CopyTo(System.Span<T> destination) { } 131 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] DangerousCreateSystem.ReadOnlySpan132 public static System.ReadOnlySpan<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } 133 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 134 [System.ObsoleteAttribute("Equals() on ReadOnlySpan will always throw an exception. Use == instead.")] EqualsSystem.ReadOnlySpan135 public override bool Equals(object obj) { throw null; } GetEnumeratorSystem.ReadOnlySpan136 public System.ReadOnlySpan<T>.Enumerator GetEnumerator() { throw null; } 137 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 138 [System.ObsoleteAttribute("GetHashCode() on ReadOnlySpan will always throw an exception.")] GetHashCodeSystem.ReadOnlySpan139 public override int GetHashCode() { throw null; } operator ==System.ReadOnlySpan140 public static bool operator ==(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } operator System.ReadOnlySpan<T>System.ReadOnlySpan141 public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> arraySegment) { throw null; } operator System.ReadOnlySpan<T>System.ReadOnlySpan142 public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; } operator !=System.ReadOnlySpan143 public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; } SliceSystem.ReadOnlySpan144 public System.ReadOnlySpan<T> Slice(int start) { throw null; } SliceSystem.ReadOnlySpan145 public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; } ToArraySystem.ReadOnlySpan146 public T[] ToArray() { throw null; } TryCopyToSystem.ReadOnlySpan147 public bool TryCopyTo(System.Span<T> destination) { throw null; } 148 public ref partial struct Enumerator 149 { 150 private object _dummy; 151 public ref readonly T Current { get { throw null; } } MoveNextSystem.ReadOnlySpan.Enumerator152 public bool MoveNext() { throw null; } 153 } 154 } 155 public readonly ref partial struct Span<T> 156 { 157 private readonly object _dummy; 158 [System.CLSCompliantAttribute(false)] SpanSystem.Span159 public unsafe Span(void* pointer, int length) { throw null; } SpanSystem.Span160 public Span(T[] array) { throw null; } SpanSystem.Span161 public Span(T[] array, int start, int length) { throw null; } 162 public static System.Span<T> Empty { get { throw null; } } 163 public bool IsEmpty { get { throw null; } } 164 public ref T this[int index] { get { throw null; } } 165 public int Length { get { throw null; } } ClearSystem.Span166 public void Clear() { } CopyToSystem.Span167 public void CopyTo(System.Span<T> destination) { } 168 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] DangerousCreateSystem.Span169 public static System.Span<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; } 170 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 171 [System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")] EqualsSystem.Span172 public override bool Equals(object obj) { throw null; } FillSystem.Span173 public void Fill(T value) { } GetEnumeratorSystem.Span174 public System.Span<T>.Enumerator GetEnumerator() { throw null; } 175 [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] 176 [System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")] GetHashCodeSystem.Span177 public override int GetHashCode() { throw null; } operator ==System.Span178 public static bool operator ==(System.Span<T> left, System.Span<T> right) { throw null; } operator System.Span<T>System.Span179 public static implicit operator System.Span<T> (System.ArraySegment<T> arraySegment) { throw null; } operator System.ReadOnlySpan<T>System.Span180 public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; } operator System.Span<T>System.Span181 public static implicit operator System.Span<T> (T[] array) { throw null; } operator !=System.Span182 public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; } SliceSystem.Span183 public System.Span<T> Slice(int start) { throw null; } SliceSystem.Span184 public System.Span<T> Slice(int start, int length) { throw null; } ToArraySystem.Span185 public T[] ToArray() { throw null; } TryCopyToSystem.Span186 public bool TryCopyTo(System.Span<T> destination) { throw null; } 187 public ref partial struct Enumerator 188 { 189 private object _dummy; 190 public ref T Current { get { throw null; } } MoveNextSystem.Span.Enumerator191 public bool MoveNext() { throw null; } 192 } 193 } 194 } 195 namespace System.Buffers 196 { 197 public partial interface IRetainable 198 { Release()199 bool Release(); Retain()200 void Retain(); 201 } 202 public partial struct MemoryHandle : System.IDisposable 203 { 204 private object _dummy; 205 [System.CLSCompliantAttribute(false)] MemoryHandleSystem.Buffers.MemoryHandle206 public unsafe MemoryHandle(System.Buffers.IRetainable retainable, void* pointer=null, System.Runtime.InteropServices.GCHandle handle=default(System.Runtime.InteropServices.GCHandle)) { throw null; } 207 public bool HasPointer { get { throw null; } } 208 [System.CLSCompliantAttribute(false)] 209 public unsafe void* Pointer { get { throw null; } } DisposeSystem.Buffers.MemoryHandle210 public void Dispose() { } 211 } 212 public enum OperationStatus 213 { 214 DestinationTooSmall = 1, 215 Done = 0, 216 InvalidData = 3, 217 NeedMoreData = 2, 218 } 219 public abstract partial class OwnedMemory<T> : System.Buffers.IRetainable, System.IDisposable 220 { OwnedMemory()221 protected OwnedMemory() { } 222 public abstract bool IsDisposed { get; } 223 protected abstract bool IsRetained { get; } 224 public abstract int Length { get; } 225 public System.Memory<T> Memory { get { throw null; } } 226 public abstract System.Span<T> Span { get; } Dispose()227 public void Dispose() { } Dispose(bool disposing)228 protected abstract void Dispose(bool disposing); Pin(int offset=0)229 public abstract System.Buffers.MemoryHandle Pin(int offset=0); Release()230 public abstract bool Release(); Retain()231 public abstract void Retain(); TryGetArray(out System.ArraySegment<T> arraySegment)232 protected internal abstract bool TryGetArray(out System.ArraySegment<T> arraySegment); 233 } 234 public readonly partial struct StandardFormat : System.IEquatable<System.Buffers.StandardFormat> 235 { 236 private readonly int _dummy; 237 public const byte MaxPrecision = (byte)99; 238 public const byte NoPrecision = (byte)255; StandardFormatSystem.Buffers.StandardFormat239 public StandardFormat(char symbol, byte precision=(byte)255) { throw null; } 240 public bool HasPrecision { get { throw null; } } 241 public bool IsDefault { get { throw null; } } 242 public byte Precision { get { throw null; } } 243 public char Symbol { get { throw null; } } EqualsSystem.Buffers.StandardFormat244 public bool Equals(System.Buffers.StandardFormat other) { throw null; } EqualsSystem.Buffers.StandardFormat245 public override bool Equals(object obj) { throw null; } GetHashCodeSystem.Buffers.StandardFormat246 public override int GetHashCode() { throw null; } operator ==System.Buffers.StandardFormat247 public static bool operator ==(System.Buffers.StandardFormat left, System.Buffers.StandardFormat right) { throw null; } operator System.Buffers.StandardFormatSystem.Buffers.StandardFormat248 public static implicit operator System.Buffers.StandardFormat (char symbol) { throw null; } operator !=System.Buffers.StandardFormat249 public static bool operator !=(System.Buffers.StandardFormat left, System.Buffers.StandardFormat right) { throw null; } ParseSystem.Buffers.StandardFormat250 public static System.Buffers.StandardFormat Parse(System.ReadOnlySpan<char> format) { throw null; } ParseSystem.Buffers.StandardFormat251 public static System.Buffers.StandardFormat Parse(string format) { throw null; } ToStringSystem.Buffers.StandardFormat252 public override string ToString() { throw null; } 253 } 254 } 255 namespace System.Buffers.Binary 256 { 257 public static partial class BinaryPrimitives 258 { ReadInt16BigEndian(System.ReadOnlySpan<byte> buffer)259 public static short ReadInt16BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; } ReadInt16LittleEndian(System.ReadOnlySpan<byte> buffer)260 public static short ReadInt16LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; } ReadInt32BigEndian(System.ReadOnlySpan<byte> buffer)261 public static int ReadInt32BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; } ReadInt32LittleEndian(System.ReadOnlySpan<byte> buffer)262 public static int ReadInt32LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; } ReadInt64BigEndian(System.ReadOnlySpan<byte> buffer)263 public static long ReadInt64BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; } ReadInt64LittleEndian(System.ReadOnlySpan<byte> buffer)264 public static long ReadInt64LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; } 265 public static T ReadMachineEndian<T>(System.ReadOnlySpan<byte> buffer) where T : struct { throw null; } 266 [System.CLSCompliantAttribute(false)] ReadUInt16BigEndian(System.ReadOnlySpan<byte> buffer)267 public static ushort ReadUInt16BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; } 268 [System.CLSCompliantAttribute(false)] ReadUInt16LittleEndian(System.ReadOnlySpan<byte> buffer)269 public static ushort ReadUInt16LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; } 270 [System.CLSCompliantAttribute(false)] ReadUInt32BigEndian(System.ReadOnlySpan<byte> buffer)271 public static uint ReadUInt32BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; } 272 [System.CLSCompliantAttribute(false)] ReadUInt32LittleEndian(System.ReadOnlySpan<byte> buffer)273 public static uint ReadUInt32LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; } 274 [System.CLSCompliantAttribute(false)] ReadUInt64BigEndian(System.ReadOnlySpan<byte> buffer)275 public static ulong ReadUInt64BigEndian(System.ReadOnlySpan<byte> buffer) { throw null; } 276 [System.CLSCompliantAttribute(false)] ReadUInt64LittleEndian(System.ReadOnlySpan<byte> buffer)277 public static ulong ReadUInt64LittleEndian(System.ReadOnlySpan<byte> buffer) { throw null; } ReverseEndianness(byte value)278 public static byte ReverseEndianness(byte value) { throw null; } ReverseEndianness(short value)279 public static short ReverseEndianness(short value) { throw null; } ReverseEndianness(int value)280 public static int ReverseEndianness(int value) { throw null; } ReverseEndianness(long value)281 public static long ReverseEndianness(long value) { throw null; } 282 [System.CLSCompliantAttribute(false)] ReverseEndianness(sbyte value)283 public static sbyte ReverseEndianness(sbyte value) { throw null; } 284 [System.CLSCompliantAttribute(false)] ReverseEndianness(ushort value)285 public static ushort ReverseEndianness(ushort value) { throw null; } 286 [System.CLSCompliantAttribute(false)] ReverseEndianness(uint value)287 public static uint ReverseEndianness(uint value) { throw null; } 288 [System.CLSCompliantAttribute(false)] ReverseEndianness(ulong value)289 public static ulong ReverseEndianness(ulong value) { throw null; } TryReadInt16BigEndian(System.ReadOnlySpan<byte> buffer, out short value)290 public static bool TryReadInt16BigEndian(System.ReadOnlySpan<byte> buffer, out short value) { throw null; } TryReadInt16LittleEndian(System.ReadOnlySpan<byte> buffer, out short value)291 public static bool TryReadInt16LittleEndian(System.ReadOnlySpan<byte> buffer, out short value) { throw null; } TryReadInt32BigEndian(System.ReadOnlySpan<byte> buffer, out int value)292 public static bool TryReadInt32BigEndian(System.ReadOnlySpan<byte> buffer, out int value) { throw null; } TryReadInt32LittleEndian(System.ReadOnlySpan<byte> buffer, out int value)293 public static bool TryReadInt32LittleEndian(System.ReadOnlySpan<byte> buffer, out int value) { throw null; } TryReadInt64BigEndian(System.ReadOnlySpan<byte> buffer, out long value)294 public static bool TryReadInt64BigEndian(System.ReadOnlySpan<byte> buffer, out long value) { throw null; } TryReadInt64LittleEndian(System.ReadOnlySpan<byte> buffer, out long value)295 public static bool TryReadInt64LittleEndian(System.ReadOnlySpan<byte> buffer, out long value) { throw null; } 296 public static bool TryReadMachineEndian<T>(System.ReadOnlySpan<byte> buffer, out T value) where T : struct { throw null; } 297 [System.CLSCompliantAttribute(false)] TryReadUInt16BigEndian(System.ReadOnlySpan<byte> buffer, out ushort value)298 public static bool TryReadUInt16BigEndian(System.ReadOnlySpan<byte> buffer, out ushort value) { throw null; } 299 [System.CLSCompliantAttribute(false)] TryReadUInt16LittleEndian(System.ReadOnlySpan<byte> buffer, out ushort value)300 public static bool TryReadUInt16LittleEndian(System.ReadOnlySpan<byte> buffer, out ushort value) { throw null; } 301 [System.CLSCompliantAttribute(false)] TryReadUInt32BigEndian(System.ReadOnlySpan<byte> buffer, out uint value)302 public static bool TryReadUInt32BigEndian(System.ReadOnlySpan<byte> buffer, out uint value) { throw null; } 303 [System.CLSCompliantAttribute(false)] TryReadUInt32LittleEndian(System.ReadOnlySpan<byte> buffer, out uint value)304 public static bool TryReadUInt32LittleEndian(System.ReadOnlySpan<byte> buffer, out uint value) { throw null; } 305 [System.CLSCompliantAttribute(false)] TryReadUInt64BigEndian(System.ReadOnlySpan<byte> buffer, out ulong value)306 public static bool TryReadUInt64BigEndian(System.ReadOnlySpan<byte> buffer, out ulong value) { throw null; } 307 [System.CLSCompliantAttribute(false)] TryReadUInt64LittleEndian(System.ReadOnlySpan<byte> buffer, out ulong value)308 public static bool TryReadUInt64LittleEndian(System.ReadOnlySpan<byte> buffer, out ulong value) { throw null; } TryWriteInt16BigEndian(System.Span<byte> buffer, short value)309 public static bool TryWriteInt16BigEndian(System.Span<byte> buffer, short value) { throw null; } TryWriteInt16LittleEndian(System.Span<byte> buffer, short value)310 public static bool TryWriteInt16LittleEndian(System.Span<byte> buffer, short value) { throw null; } TryWriteInt32BigEndian(System.Span<byte> buffer, int value)311 public static bool TryWriteInt32BigEndian(System.Span<byte> buffer, int value) { throw null; } TryWriteInt32LittleEndian(System.Span<byte> buffer, int value)312 public static bool TryWriteInt32LittleEndian(System.Span<byte> buffer, int value) { throw null; } TryWriteInt64BigEndian(System.Span<byte> buffer, long value)313 public static bool TryWriteInt64BigEndian(System.Span<byte> buffer, long value) { throw null; } TryWriteInt64LittleEndian(System.Span<byte> buffer, long value)314 public static bool TryWriteInt64LittleEndian(System.Span<byte> buffer, long value) { throw null; } 315 public static bool TryWriteMachineEndian<T>(System.Span<byte> buffer, ref T value) where T : struct { throw null; } 316 [System.CLSCompliantAttribute(false)] TryWriteUInt16BigEndian(System.Span<byte> buffer, ushort value)317 public static bool TryWriteUInt16BigEndian(System.Span<byte> buffer, ushort value) { throw null; } 318 [System.CLSCompliantAttribute(false)] TryWriteUInt16LittleEndian(System.Span<byte> buffer, ushort value)319 public static bool TryWriteUInt16LittleEndian(System.Span<byte> buffer, ushort value) { throw null; } 320 [System.CLSCompliantAttribute(false)] TryWriteUInt32BigEndian(System.Span<byte> buffer, uint value)321 public static bool TryWriteUInt32BigEndian(System.Span<byte> buffer, uint value) { throw null; } 322 [System.CLSCompliantAttribute(false)] TryWriteUInt32LittleEndian(System.Span<byte> buffer, uint value)323 public static bool TryWriteUInt32LittleEndian(System.Span<byte> buffer, uint value) { throw null; } 324 [System.CLSCompliantAttribute(false)] TryWriteUInt64BigEndian(System.Span<byte> buffer, ulong value)325 public static bool TryWriteUInt64BigEndian(System.Span<byte> buffer, ulong value) { throw null; } 326 [System.CLSCompliantAttribute(false)] TryWriteUInt64LittleEndian(System.Span<byte> buffer, ulong value)327 public static bool TryWriteUInt64LittleEndian(System.Span<byte> buffer, ulong value) { throw null; } WriteInt16BigEndian(System.Span<byte> buffer, short value)328 public static void WriteInt16BigEndian(System.Span<byte> buffer, short value) { } WriteInt16LittleEndian(System.Span<byte> buffer, short value)329 public static void WriteInt16LittleEndian(System.Span<byte> buffer, short value) { } WriteInt32BigEndian(System.Span<byte> buffer, int value)330 public static void WriteInt32BigEndian(System.Span<byte> buffer, int value) { } WriteInt32LittleEndian(System.Span<byte> buffer, int value)331 public static void WriteInt32LittleEndian(System.Span<byte> buffer, int value) { } WriteInt64BigEndian(System.Span<byte> buffer, long value)332 public static void WriteInt64BigEndian(System.Span<byte> buffer, long value) { } WriteInt64LittleEndian(System.Span<byte> buffer, long value)333 public static void WriteInt64LittleEndian(System.Span<byte> buffer, long value) { } 334 public static void WriteMachineEndian<T>(System.Span<byte> buffer, ref T value) where T : struct { } 335 [System.CLSCompliantAttribute(false)] WriteUInt16BigEndian(System.Span<byte> buffer, ushort value)336 public static void WriteUInt16BigEndian(System.Span<byte> buffer, ushort value) { } 337 [System.CLSCompliantAttribute(false)] WriteUInt16LittleEndian(System.Span<byte> buffer, ushort value)338 public static void WriteUInt16LittleEndian(System.Span<byte> buffer, ushort value) { } 339 [System.CLSCompliantAttribute(false)] WriteUInt32BigEndian(System.Span<byte> buffer, uint value)340 public static void WriteUInt32BigEndian(System.Span<byte> buffer, uint value) { } 341 [System.CLSCompliantAttribute(false)] WriteUInt32LittleEndian(System.Span<byte> buffer, uint value)342 public static void WriteUInt32LittleEndian(System.Span<byte> buffer, uint value) { } 343 [System.CLSCompliantAttribute(false)] WriteUInt64BigEndian(System.Span<byte> buffer, ulong value)344 public static void WriteUInt64BigEndian(System.Span<byte> buffer, ulong value) { } 345 [System.CLSCompliantAttribute(false)] WriteUInt64LittleEndian(System.Span<byte> buffer, ulong value)346 public static void WriteUInt64LittleEndian(System.Span<byte> buffer, ulong value) { } 347 } 348 } 349 namespace System.Buffers.Text 350 { 351 public static partial class Base64 352 { DecodeFromUtf8(System.ReadOnlySpan<byte> utf8, System.Span<byte> bytes, out int consumed, out int written, bool isFinalBlock=true)353 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; } DecodeFromUtf8InPlace(System.Span<byte> buffer, out int written)354 public static System.Buffers.OperationStatus DecodeFromUtf8InPlace(System.Span<byte> buffer, out int written) { throw null; } EncodeToUtf8(System.ReadOnlySpan<byte> bytes, System.Span<byte> utf8, out int consumed, out int written, bool isFinalBlock=true)355 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; } EncodeToUtf8InPlace(System.Span<byte> buffer, int dataLength, out int written)356 public static System.Buffers.OperationStatus EncodeToUtf8InPlace(System.Span<byte> buffer, int dataLength, out int written) { throw null; } GetMaxDecodedFromUtf8Length(int length)357 public static int GetMaxDecodedFromUtf8Length(int length) { throw null; } GetMaxEncodedToUtf8Length(int length)358 public static int GetMaxEncodedToUtf8Length(int length) { throw null; } 359 } 360 public static partial class Utf8Formatter 361 { TryFormat(bool value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))362 public static bool TryFormat(bool value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(byte value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))363 public static bool TryFormat(byte value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(System.DateTime value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))364 public static bool TryFormat(System.DateTime value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(System.DateTimeOffset value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))365 public static bool TryFormat(System.DateTimeOffset value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(decimal value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))366 public static bool TryFormat(decimal value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(double value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))367 public static bool TryFormat(double value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(System.Guid value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))368 public static bool TryFormat(System.Guid value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(short value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))369 public static bool TryFormat(short value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(int value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))370 public static bool TryFormat(int value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(long value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))371 public static bool TryFormat(long value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } 372 [System.CLSCompliantAttribute(false)] TryFormat(sbyte value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))373 public static bool TryFormat(sbyte value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(float value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))374 public static bool TryFormat(float value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } TryFormat(System.TimeSpan value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))375 public static bool TryFormat(System.TimeSpan value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } 376 [System.CLSCompliantAttribute(false)] TryFormat(ushort value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))377 public static bool TryFormat(ushort value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } 378 [System.CLSCompliantAttribute(false)] TryFormat(uint value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))379 public static bool TryFormat(uint value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } 380 [System.CLSCompliantAttribute(false)] TryFormat(ulong value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat))381 public static bool TryFormat(ulong value, System.Span<byte> buffer, out int bytesWritten, System.Buffers.StandardFormat format=default(System.Buffers.StandardFormat)) { throw null; } 382 } 383 public static partial class Utf8Parser 384 { TryParse(System.ReadOnlySpan<byte> text, out bool value, out int bytesConsumed, char standardFormat=B)385 public static bool TryParse(System.ReadOnlySpan<byte> text, out bool value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out byte value, out int bytesConsumed, char standardFormat=B)386 public static bool TryParse(System.ReadOnlySpan<byte> text, out byte value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out System.DateTime value, out int bytesConsumed, char standardFormat=B)387 public static bool TryParse(System.ReadOnlySpan<byte> text, out System.DateTime value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out System.DateTimeOffset value, out int bytesConsumed, char standardFormat=B)388 public static bool TryParse(System.ReadOnlySpan<byte> text, out System.DateTimeOffset value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out decimal value, out int bytesConsumed, char standardFormat=B)389 public static bool TryParse(System.ReadOnlySpan<byte> text, out decimal value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out double value, out int bytesConsumed, char standardFormat=B)390 public static bool TryParse(System.ReadOnlySpan<byte> text, out double value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out System.Guid value, out int bytesConsumed, char standardFormat=B)391 public static bool TryParse(System.ReadOnlySpan<byte> text, out System.Guid value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out short value, out int bytesConsumed, char standardFormat=B)392 public static bool TryParse(System.ReadOnlySpan<byte> text, out short value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out int value, out int bytesConsumed, char standardFormat=B)393 public static bool TryParse(System.ReadOnlySpan<byte> text, out int value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out long value, out int bytesConsumed, char standardFormat=B)394 public static bool TryParse(System.ReadOnlySpan<byte> text, out long value, out int bytesConsumed, char standardFormat='\0') { throw null; } 395 [System.CLSCompliantAttribute(false)] TryParse(System.ReadOnlySpan<byte> text, out sbyte value, out int bytesConsumed, char standardFormat=B)396 public static bool TryParse(System.ReadOnlySpan<byte> text, out sbyte value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out float value, out int bytesConsumed, char standardFormat=B)397 public static bool TryParse(System.ReadOnlySpan<byte> text, out float value, out int bytesConsumed, char standardFormat='\0') { throw null; } TryParse(System.ReadOnlySpan<byte> text, out System.TimeSpan value, out int bytesConsumed, char standardFormat=B)398 public static bool TryParse(System.ReadOnlySpan<byte> text, out System.TimeSpan value, out int bytesConsumed, char standardFormat='\0') { throw null; } 399 [System.CLSCompliantAttribute(false)] TryParse(System.ReadOnlySpan<byte> text, out ushort value, out int bytesConsumed, char standardFormat=B)400 public static bool TryParse(System.ReadOnlySpan<byte> text, out ushort value, out int bytesConsumed, char standardFormat='\0') { throw null; } 401 [System.CLSCompliantAttribute(false)] TryParse(System.ReadOnlySpan<byte> text, out uint value, out int bytesConsumed, char standardFormat=B)402 public static bool TryParse(System.ReadOnlySpan<byte> text, out uint value, out int bytesConsumed, char standardFormat='\0') { throw null; } 403 [System.CLSCompliantAttribute(false)] TryParse(System.ReadOnlySpan<byte> text, out ulong value, out int bytesConsumed, char standardFormat=B)404 public static bool TryParse(System.ReadOnlySpan<byte> text, out ulong value, out int bytesConsumed, char standardFormat='\0') { throw null; } 405 } 406 } 407 namespace System.Runtime.InteropServices 408 { 409 public static partial class MemoryMarshal 410 { AsMemory(System.ReadOnlyMemory<T> readOnlyMemory)411 public static System.Memory<T> AsMemory<T>(System.ReadOnlyMemory<T> readOnlyMemory) { throw null; } GetReference(System.ReadOnlySpan<T> span)412 public static ref T GetReference<T>(System.ReadOnlySpan<T> span) { throw null; } GetReference(System.Span<T> span)413 public static ref T GetReference<T>(System.Span<T> span) { throw null; } TryGetArray(System.ReadOnlyMemory<T> readOnlyMemory, out System.ArraySegment<T> arraySegment)414 public static bool TryGetArray<T>(System.ReadOnlyMemory<T> readOnlyMemory, out System.ArraySegment<T> arraySegment) { throw null; } 415 } 416 } 417