1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 03:25:41 +00:00

Mark ReadUInt* methods with CLSCompliantAttribute

This commit is contained in:
Oliver Booth 2021-03-03 17:51:30 +00:00
parent e0b19aff99
commit e7ba24aa69

View File

@ -131,6 +131,7 @@ namespace X10D.StreamExtensions
/// </summary> /// </summary>
/// <param name="stream">The stream from which the value should be read.</param> /// <param name="stream">The stream from which the value should be read.</param>
/// <returns>An two-byte unsigned integer read from the stream.</returns> /// <returns>An two-byte unsigned integer read from the stream.</returns>
[CLSCompliant(false)]
public static ushort ReadUInt16(this Stream stream) public static ushort ReadUInt16(this Stream stream)
{ {
return stream.ReadUInt16(DefaultEndianness); return stream.ReadUInt16(DefaultEndianness);
@ -143,6 +144,7 @@ namespace X10D.StreamExtensions
/// <param name="stream">The stream from which the value should be read.</param> /// <param name="stream">The stream from which the value should be read.</param>
/// <param name="endianness">The endian encoding to use.</param> /// <param name="endianness">The endian encoding to use.</param>
/// <returns>An two-byte unsigned integer read from the stream.</returns> /// <returns>An two-byte unsigned integer read from the stream.</returns>
[CLSCompliant(false)]
public static ushort ReadUInt16(this Stream stream, Endianness endianness) public static ushort ReadUInt16(this Stream stream, Endianness endianness)
{ {
var value = ReadInternal<ushort>(stream, endianness); var value = ReadInternal<ushort>(stream, endianness);
@ -155,6 +157,7 @@ namespace X10D.StreamExtensions
/// </summary> /// </summary>
/// <param name="stream">The stream from which the value should be read.</param> /// <param name="stream">The stream from which the value should be read.</param>
/// <returns>An four-byte unsigned integer read from the stream.</returns> /// <returns>An four-byte unsigned integer read from the stream.</returns>
[CLSCompliant(false)]
public static uint ReadUInt32(this Stream stream) public static uint ReadUInt32(this Stream stream)
{ {
return stream.ReadUInt32(DefaultEndianness); return stream.ReadUInt32(DefaultEndianness);
@ -167,6 +170,7 @@ namespace X10D.StreamExtensions
/// <param name="stream">The stream from which the value should be read.</param> /// <param name="stream">The stream from which the value should be read.</param>
/// <param name="endianness">The endian encoding to use.</param> /// <param name="endianness">The endian encoding to use.</param>
/// <returns>An four-byte unsigned integer read from the stream.</returns> /// <returns>An four-byte unsigned integer read from the stream.</returns>
[CLSCompliant(false)]
public static uint ReadUInt32(this Stream stream, Endianness endianness) public static uint ReadUInt32(this Stream stream, Endianness endianness)
{ {
var value = ReadInternal<uint>(stream, endianness); var value = ReadInternal<uint>(stream, endianness);
@ -179,6 +183,7 @@ namespace X10D.StreamExtensions
/// </summary> /// </summary>
/// <param name="stream">The stream from which the value should be read.</param> /// <param name="stream">The stream from which the value should be read.</param>
/// <returns>An eight-byte unsigned integer read from the stream.</returns> /// <returns>An eight-byte unsigned integer read from the stream.</returns>
[CLSCompliant(false)]
public static ulong ReadUInt64(this Stream stream) public static ulong ReadUInt64(this Stream stream)
{ {
return stream.ReadUInt64(DefaultEndianness); return stream.ReadUInt64(DefaultEndianness);
@ -191,6 +196,7 @@ namespace X10D.StreamExtensions
/// <param name="stream">The stream from which the value should be read.</param> /// <param name="stream">The stream from which the value should be read.</param>
/// <param name="endianness">The endian encoding to use.</param> /// <param name="endianness">The endian encoding to use.</param>
/// <returns>An eight-byte unsigned integer read from the stream.</returns> /// <returns>An eight-byte unsigned integer read from the stream.</returns>
[CLSCompliant(false)]
public static ulong ReadUInt64(this Stream stream, Endianness endianness) public static ulong ReadUInt64(this Stream stream, Endianness endianness)
{ {
var value = ReadInternal<ulong>(stream, endianness); var value = ReadInternal<ulong>(stream, endianness);