@@ -12,6 +12,7 @@ public readonly ref struct ReadOnlySpan<T>
1212 public static ReadOnlySpan < T > Empty { get { throw null ; } }
1313 public ReadOnlySpan ( T [ ] array ) { throw null ; }
1414 public ReadOnlySpan ( T [ ] array , int start , int length ) { throw null ; }
15+ [ CLSCompliant ( false ) ]
1516 public unsafe ReadOnlySpan ( void * pointer , int length ) { throw null ; }
1617 public bool IsEmpty { get { throw null ; } }
1718 public T this [ int index ] { get { throw null ; } }
@@ -50,6 +51,7 @@ public readonly ref struct Span<T>
5051 public static Span < T > Empty { get { throw null ; } }
5152 public Span ( T [ ] array ) { throw null ; }
5253 public Span ( T [ ] array , int start , int length ) { throw null ; }
54+ [ CLSCompliant ( false ) ]
5355 public unsafe Span ( void * pointer , int length ) { throw null ; }
5456 public bool IsEmpty { get { throw null ; } }
5557 public ref T this [ int index ] { get { throw null ; } }
@@ -187,7 +189,9 @@ namespace System.Buffers
187189{
188190 public unsafe struct MemoryHandle : IDisposable
189191 {
192+ [ CLSCompliant ( false ) ]
190193 public MemoryHandle ( IRetainable owner , void * pointer = null , System . Runtime . InteropServices . GCHandle handle = default ( System . Runtime . InteropServices . GCHandle ) ) { throw null ; }
194+ [ CLSCompliant ( false ) ]
191195 public void * Pointer { get { throw null ; } }
192196 public bool HasPointer { get { throw null ; } }
193197 public void Dispose ( ) { throw null ; }
@@ -227,13 +231,17 @@ namespace System.Buffers.Binary
227231{
228232 public static class BinaryPrimitives
229233 {
234+ [ CLSCompliant ( false ) ]
230235 public static sbyte ReverseEndianness ( sbyte value ) { throw null ; }
231236 public static byte ReverseEndianness ( byte value ) { throw null ; }
232237 public static short ReverseEndianness ( short value ) { throw null ; }
238+ [ CLSCompliant ( false ) ]
233239 public static ushort ReverseEndianness ( ushort value ) { throw null ; }
234240 public static int ReverseEndianness ( int value ) { throw null ; }
241+ [ CLSCompliant ( false ) ]
235242 public static uint ReverseEndianness ( uint value ) { throw null ; }
236243 public static long ReverseEndianness ( long value ) { throw null ; }
244+ [ CLSCompliant ( false ) ]
237245 public static ulong ReverseEndianness ( ulong value ) { throw null ; }
238246
239247 public static T ReadMachineEndian < T > ( ReadOnlySpan < byte > buffer ) where T : struct { throw null ; }
@@ -242,29 +250,41 @@ public static class BinaryPrimitives
242250 public static short ReadInt16LittleEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
243251 public static int ReadInt32LittleEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
244252 public static long ReadInt64LittleEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
253+ [ CLSCompliant ( false ) ]
245254 public static ushort ReadUInt16LittleEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
255+ [ CLSCompliant ( false ) ]
246256 public static uint ReadUInt32LittleEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
257+ [ CLSCompliant ( false ) ]
247258 public static ulong ReadUInt64LittleEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
248259
249260 public static bool TryReadInt16LittleEndian ( ReadOnlySpan < byte > buffer , out short value ) { throw null ; }
250261 public static bool TryReadInt32LittleEndian ( ReadOnlySpan < byte > buffer , out int value ) { throw null ; }
251262 public static bool TryReadInt64LittleEndian ( ReadOnlySpan < byte > buffer , out long value ) { throw null ; }
263+ [ CLSCompliant ( false ) ]
252264 public static bool TryReadUInt16LittleEndian ( ReadOnlySpan < byte > buffer , out ushort value ) { throw null ; }
265+ [ CLSCompliant ( false ) ]
253266 public static bool TryReadUInt32LittleEndian ( ReadOnlySpan < byte > buffer , out uint value ) { throw null ; }
267+ [ CLSCompliant ( false ) ]
254268 public static bool TryReadUInt64LittleEndian ( ReadOnlySpan < byte > buffer , out ulong value ) { throw null ; }
255269
256270 public static short ReadInt16BigEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
257271 public static int ReadInt32BigEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
258272 public static long ReadInt64BigEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
273+ [ CLSCompliant ( false ) ]
259274 public static ushort ReadUInt16BigEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
275+ [ CLSCompliant ( false ) ]
260276 public static uint ReadUInt32BigEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
277+ [ CLSCompliant ( false ) ]
261278 public static ulong ReadUInt64BigEndian ( ReadOnlySpan < byte > buffer ) { throw null ; }
262279
263280 public static bool TryReadInt16BigEndian ( ReadOnlySpan < byte > buffer , out short value ) { throw null ; }
264281 public static bool TryReadInt32BigEndian ( ReadOnlySpan < byte > buffer , out int value ) { throw null ; }
265282 public static bool TryReadInt64BigEndian ( ReadOnlySpan < byte > buffer , out long value ) { throw null ; }
283+ [ CLSCompliant ( false ) ]
266284 public static bool TryReadUInt16BigEndian ( ReadOnlySpan < byte > buffer , out ushort value ) { throw null ; }
285+ [ CLSCompliant ( false ) ]
267286 public static bool TryReadUInt32BigEndian ( ReadOnlySpan < byte > buffer , out uint value ) { throw null ; }
287+ [ CLSCompliant ( false ) ]
268288 public static bool TryReadUInt64BigEndian ( ReadOnlySpan < byte > buffer , out ulong value ) { throw null ; }
269289
270290 public static void WriteMachineEndian < T > ( Span < byte > buffer , ref T value ) where T : struct { throw null ; }
@@ -273,29 +293,41 @@ public static class BinaryPrimitives
273293 public static void WriteInt16LittleEndian ( Span < byte > buffer , short value ) { throw null ; }
274294 public static void WriteInt32LittleEndian ( Span < byte > buffer , int value ) { throw null ; }
275295 public static void WriteInt64LittleEndian ( Span < byte > buffer , long value ) { throw null ; }
296+ [ CLSCompliant ( false ) ]
276297 public static void WriteUInt16LittleEndian ( Span < byte > buffer , ushort value ) { throw null ; }
298+ [ CLSCompliant ( false ) ]
277299 public static void WriteUInt32LittleEndian ( Span < byte > buffer , uint value ) { throw null ; }
300+ [ CLSCompliant ( false ) ]
278301 public static void WriteUInt64LittleEndian ( Span < byte > buffer , ulong value ) { throw null ; }
279302
280303 public static bool TryWriteInt16LittleEndian ( Span < byte > buffer , short value ) { throw null ; }
281304 public static bool TryWriteInt32LittleEndian ( Span < byte > buffer , int value ) { throw null ; }
282305 public static bool TryWriteInt64LittleEndian ( Span < byte > buffer , long value ) { throw null ; }
306+ [ CLSCompliant ( false ) ]
283307 public static bool TryWriteUInt16LittleEndian ( Span < byte > buffer , ushort value ) { throw null ; }
308+ [ CLSCompliant ( false ) ]
284309 public static bool TryWriteUInt32LittleEndian ( Span < byte > buffer , uint value ) { throw null ; }
310+ [ CLSCompliant ( false ) ]
285311 public static bool TryWriteUInt64LittleEndian ( Span < byte > buffer , ulong value ) { throw null ; }
286312
287313 public static void WriteInt16BigEndian ( Span < byte > buffer , short value ) { throw null ; }
288314 public static void WriteInt32BigEndian ( Span < byte > buffer , int value ) { throw null ; }
289315 public static void WriteInt64BigEndian ( Span < byte > buffer , long value ) { throw null ; }
316+ [ CLSCompliant ( false ) ]
290317 public static void WriteUInt16BigEndian ( Span < byte > buffer , ushort value ) { throw null ; }
318+ [ CLSCompliant ( false ) ]
291319 public static void WriteUInt32BigEndian ( Span < byte > buffer , uint value ) { throw null ; }
320+ [ CLSCompliant ( false ) ]
292321 public static void WriteUInt64BigEndian ( Span < byte > buffer , ulong value ) { throw null ; }
293322
294323 public static bool TryWriteInt16BigEndian ( Span < byte > buffer , short value ) { throw null ; }
295324 public static bool TryWriteInt32BigEndian ( Span < byte > buffer , int value ) { throw null ; }
296325 public static bool TryWriteInt64BigEndian ( Span < byte > buffer , long value ) { throw null ; }
326+ [ CLSCompliant ( false ) ]
297327 public static bool TryWriteUInt16BigEndian ( Span < byte > buffer , ushort value ) { throw null ; }
328+ [ CLSCompliant ( false ) ]
298329 public static bool TryWriteUInt32BigEndian ( Span < byte > buffer , uint value ) { throw null ; }
330+ [ CLSCompliant ( false ) ]
299331 public static bool TryWriteUInt64BigEndian ( Span < byte > buffer , ulong value ) { throw null ; }
300332 }
301333}
@@ -346,11 +378,15 @@ public static class Utf8Formatter
346378 public static bool TryFormat ( short value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
347379 public static bool TryFormat ( int value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
348380 public static bool TryFormat ( long value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
381+ [ CLSCompliant ( false ) ]
349382 public static bool TryFormat ( sbyte value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
350383 public static bool TryFormat ( float value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
351384 public static bool TryFormat ( TimeSpan value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
385+ [ CLSCompliant ( false ) ]
352386 public static bool TryFormat ( ushort value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
387+ [ CLSCompliant ( false ) ]
353388 public static bool TryFormat ( uint value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
389+ [ CLSCompliant ( false ) ]
354390 public static bool TryFormat ( ulong value , Span < byte > buffer , out int bytesWritten , StandardFormat format = default ) => throw null ;
355391 }
356392 public static class Utf8Parser
@@ -365,11 +401,15 @@ public static class Utf8Parser
365401 public static bool TryParse ( ReadOnlySpan < byte > text , out short value , out int bytesConsumed , char standardFormat = default ) => throw null ;
366402 public static bool TryParse ( ReadOnlySpan < byte > text , out int value , out int bytesConsumed , char standardFormat = default ) => throw null ;
367403 public static bool TryParse ( ReadOnlySpan < byte > text , out long value , out int bytesConsumed , char standardFormat = default ) => throw null ;
404+ [ CLSCompliant ( false ) ]
368405 public static bool TryParse ( ReadOnlySpan < byte > text , out sbyte value , out int bytesConsumed , char standardFormat = default ) => throw null ;
369406 public static bool TryParse ( ReadOnlySpan < byte > text , out float value , out int bytesConsumed , char standardFormat = default ) => throw null ;
370407 public static bool TryParse ( ReadOnlySpan < byte > text , out TimeSpan value , out int bytesConsumed , char standardFormat = default ) => throw null ;
408+ [ CLSCompliant ( false ) ]
371409 public static bool TryParse ( ReadOnlySpan < byte > text , out ushort value , out int bytesConsumed , char standardFormat = default ) => throw null ;
410+ [ CLSCompliant ( false ) ]
372411 public static bool TryParse ( ReadOnlySpan < byte > text , out uint value , out int bytesConsumed , char standardFormat = default ) => throw null ;
412+ [ CLSCompliant ( false ) ]
373413 public static bool TryParse ( ReadOnlySpan < byte > text , out ulong value , out int bytesConsumed , char standardFormat = default ) => throw null ;
374414 }
375415}
0 commit comments