Merge pull request #79 from CrAzYPiLoT-SS13/warning_resolve

Reduces warning count
This commit is contained in:
Silver
2017-05-01 16:36:36 -06:00
committed by GitHub
4 changed files with 51 additions and 44 deletions

1
.gitignore vendored
View File

@@ -55,3 +55,4 @@ _ReSharper*/
/Media
/setenv.bat
/.nuget
.vs/

View File

@@ -75,9 +75,9 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Diagnostics.Runtime">
<Name>Microsoft.Diagnostics.Runtime</Name>
<Private>False</Private>
<Reference Include="Microsoft.Diagnostics.Runtime, Version=0.8.31.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Diagnostics.Runtime.0.8.31-beta\lib\net40\Microsoft.Diagnostics.Runtime.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.DebuggerVisualizers, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="sfmlnet-graphics-2">
@@ -259,6 +259,7 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
<PropertyGroup>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Diagnostics.Runtime" version="0.8.31-beta" targetFramework="net451" />
</packages>

View File

@@ -37,6 +37,7 @@ using System.Net.Sockets;
using System.Resources;
using System.Security.Cryptography;
using System.Text;
[assembly: CLSCompliant(false)]
namespace BKSystem.IO
{
@@ -1231,7 +1232,7 @@ namespace BKSystem.IO
/// from.
/// </param>
/// <seealso cref="SByte"/>
[CLSCompliant(false)]
public virtual void Write(sbyte bits)
{
Write(bits, 0, SizeOfByte);
@@ -1259,7 +1260,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="SByte"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(sbyte bits, int bitIndex, int count)
{
// Convert the value to a byte
@@ -1286,7 +1287,7 @@ namespace BKSystem.IO
/// A <see cref="SByte"/> array specifying the buffer to write data from.
/// </param>
/// <seealso cref="SByte"/>
[CLSCompliant(false)]
public virtual void Write(sbyte[] bits)
{
if (!_blnIsOpen)
@@ -1330,7 +1331,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="SByte"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(sbyte[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -1388,7 +1389,7 @@ namespace BKSystem.IO
/// from.
/// </param>
/// <seealso cref="Char"/>
[CLSCompliant(false)]
public virtual void Write(char bits)
{
Write(bits, 0, SizeOfChar);
@@ -1426,7 +1427,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="Char"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(char bits, int bitIndex, int count)
{
if (!_blnIsOpen)
@@ -1467,7 +1468,7 @@ namespace BKSystem.IO
/// An <see cref="Char"/> array specifying the buffer to write data from.
/// </param>
/// <seealso cref="Char"/>
[CLSCompliant(false)]
public virtual void Write(char[] bits)
{
if (!_blnIsOpen)
@@ -1511,7 +1512,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="Char"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(char[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -1547,7 +1548,7 @@ namespace BKSystem.IO
/// from.
/// </param>
/// <seealso cref="UInt16"/>
[CLSCompliant(false)]
public virtual void Write(ushort bits)
{
Write(bits, 0, SizeOfUInt16);
@@ -1585,7 +1586,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="UInt16"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(ushort bits, int bitIndex, int count)
{
if (!_blnIsOpen)
@@ -1626,7 +1627,7 @@ namespace BKSystem.IO
/// An <see cref="UInt16"/> array specifying the buffer to write data from.
/// </param>
/// <seealso cref="UInt16"/>
[CLSCompliant(false)]
public virtual void Write(ushort[] bits)
{
if (!_blnIsOpen)
@@ -1670,7 +1671,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="UInt16"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(ushort[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -1842,7 +1843,7 @@ namespace BKSystem.IO
/// from.
/// </param>
/// <seealso cref="UInt32"/>
[CLSCompliant(false)]
public virtual void Write(uint bits)
{
Write(bits, 0, SizeOfUInt32);
@@ -1880,7 +1881,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="UInt32"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(uint bits, int bitIndex, int count)
{
if (!_blnIsOpen)
@@ -1920,7 +1921,7 @@ namespace BKSystem.IO
/// An <see cref="UInt32"/> array specifying the buffer to write data from.
/// </param>
/// <seealso cref="UInt32"/>
[CLSCompliant(false)]
public virtual void Write(uint[] bits)
{
if (!_blnIsOpen)
@@ -1964,7 +1965,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="UInt32"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(uint[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -2265,7 +2266,7 @@ namespace BKSystem.IO
/// from.
/// </param>
/// <seealso cref="UInt64"/>
[CLSCompliant(false)]
public virtual void Write(ulong bits)
{
Write(bits, 0, SizeOfUInt64);
@@ -2305,7 +2306,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="UInt64"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(ulong bits, int bitIndex, int count)
{
if (!_blnIsOpen)
@@ -2360,7 +2361,7 @@ namespace BKSystem.IO
/// An <see cref="UInt64"/> array specifying the buffer to write data from.
/// </param>
/// <seealso cref="UInt64"/>
[CLSCompliant(false)]
public virtual void Write(ulong[] bits)
{
if (!_blnIsOpen)
@@ -2404,7 +2405,7 @@ namespace BKSystem.IO
/// </param>
/// <seealso cref="UInt64"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual void Write(ulong[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -3197,7 +3198,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="SByte"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out sbyte bits)
{
return Read(out bits, 0, SizeOfByte);
@@ -3234,7 +3235,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="SByte"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out sbyte bits, int bitIndex, int count)
{
byte bytBits = 0;
@@ -3272,7 +3273,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="SByte"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(sbyte[] bits)
{
if (!_blnIsOpen)
@@ -3326,7 +3327,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="SByte"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(sbyte[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -3624,7 +3625,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt16"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out ushort bits)
{
return Read(out bits, 0, SizeOfUInt16);
@@ -3671,7 +3672,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt16"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out ushort bits, int bitIndex, int count)
{
if (!_blnIsOpen)
@@ -3726,7 +3727,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt16"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(ushort[] bits)
{
if (!_blnIsOpen)
@@ -3780,7 +3781,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt16"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(ushort[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -4009,7 +4010,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt32"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out uint bits)
{
return Read(out bits, 0, SizeOfUInt32);
@@ -4056,7 +4057,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt32"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out uint bits, int bitIndex, int count)
{
if (!_blnIsOpen)
@@ -4111,7 +4112,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt32"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(uint[] bits)
{
if (!_blnIsOpen)
@@ -4165,7 +4166,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt32"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(uint[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -4568,7 +4569,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt64"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out ulong bits)
{
return Read(out bits, 0, SizeOfUInt64);
@@ -4615,7 +4616,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt64"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(out ulong bits, int bitIndex, int count)
{
if (!_blnIsOpen)
@@ -4686,7 +4687,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt64"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(ulong[] bits)
{
if (!_blnIsOpen)
@@ -4740,7 +4741,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="UInt64"/>
/// <seealso cref="Int32"/>
[CLSCompliant(false)]
public virtual int Read(ulong[] bits, int offset, int count)
{
if (!_blnIsOpen)
@@ -5593,7 +5594,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="String"/>
/// <seealso cref="SByte"/>
[CLSCompliant(false)]
public static string ToString(sbyte bits)
{
var bytBits = (byte) bits;
@@ -5668,7 +5669,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="String"/>
/// <seealso cref="UInt16"/>
[CLSCompliant(false)]
public static string ToString(ushort bits)
{
var sBits = (short) bits;
@@ -5743,7 +5744,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="String"/>
/// <seealso cref="UInt32"/>
[CLSCompliant(false)]
public static string ToString(uint bits)
{
var sb = new StringBuilder(32);
@@ -5818,7 +5819,7 @@ namespace BKSystem.IO
/// </returns>
/// <seealso cref="String"/>
/// <seealso cref="UInt64"/>
[CLSCompliant(false)]
public static string ToString(ulong bits)
{
var sb = new StringBuilder(64);
@@ -6114,7 +6115,7 @@ namespace BKSystem.IO
/// <returns>
/// The integer array from which this stream was created.
/// </returns>
[CLSCompliant(false)]
public virtual uint[] GetBuffer()
{
return _auiBitBuffer;