From e7ba24aa69dd87832cd776fbb3b509761a5f27c8 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 3 Mar 2021 17:51:30 +0000 Subject: [PATCH] Mark ReadUInt* methods with CLSCompliantAttribute --- X10D/src/StreamExtensions/StreamExtensions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/X10D/src/StreamExtensions/StreamExtensions.cs b/X10D/src/StreamExtensions/StreamExtensions.cs index 5d2a811..cd2f6e1 100644 --- a/X10D/src/StreamExtensions/StreamExtensions.cs +++ b/X10D/src/StreamExtensions/StreamExtensions.cs @@ -131,6 +131,7 @@ namespace X10D.StreamExtensions /// /// The stream from which the value should be read. /// An two-byte unsigned integer read from the stream. + [CLSCompliant(false)] public static ushort ReadUInt16(this Stream stream) { return stream.ReadUInt16(DefaultEndianness); @@ -143,6 +144,7 @@ namespace X10D.StreamExtensions /// The stream from which the value should be read. /// The endian encoding to use. /// An two-byte unsigned integer read from the stream. + [CLSCompliant(false)] public static ushort ReadUInt16(this Stream stream, Endianness endianness) { var value = ReadInternal(stream, endianness); @@ -155,6 +157,7 @@ namespace X10D.StreamExtensions /// /// The stream from which the value should be read. /// An four-byte unsigned integer read from the stream. + [CLSCompliant(false)] public static uint ReadUInt32(this Stream stream) { return stream.ReadUInt32(DefaultEndianness); @@ -167,6 +170,7 @@ namespace X10D.StreamExtensions /// The stream from which the value should be read. /// The endian encoding to use. /// An four-byte unsigned integer read from the stream. + [CLSCompliant(false)] public static uint ReadUInt32(this Stream stream, Endianness endianness) { var value = ReadInternal(stream, endianness); @@ -179,6 +183,7 @@ namespace X10D.StreamExtensions /// /// The stream from which the value should be read. /// An eight-byte unsigned integer read from the stream. + [CLSCompliant(false)] public static ulong ReadUInt64(this Stream stream) { return stream.ReadUInt64(DefaultEndianness); @@ -191,6 +196,7 @@ namespace X10D.StreamExtensions /// The stream from which the value should be read. /// The endian encoding to use. /// An eight-byte unsigned integer read from the stream. + [CLSCompliant(false)] public static ulong ReadUInt64(this Stream stream, Endianness endianness) { var value = ReadInternal(stream, endianness);