Skip to content

Commit

Permalink
fixed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
force-net committed Dec 4, 2017
1 parent 021ca70 commit 44aa6a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 27 deletions.
22 changes: 1 addition & 21 deletions Crc32.NET.Core.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26114.2
Expand All @@ -11,36 +11,16 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x64.ActiveCfg = Debug|x64
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x64.Build.0 = Debug|x64
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x86.ActiveCfg = Debug|x86
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Debug|x86.Build.0 = Debug|x86
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|Any CPU.Build.0 = Release|Any CPU
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x64.ActiveCfg = Release|x64
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x64.Build.0 = Release|x64
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x86.ActiveCfg = Release|x86
{E95FA3F3-4ED0-41FF-9A1F-DE80CE14A976}.Release|x86.Build.0 = Release|x86
{A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x64.ActiveCfg = Debug|x64
{A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x64.Build.0 = Debug|x64
{A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x86.ActiveCfg = Debug|x86
{A602A9CA-793A-4096-A93C-799CA74519BF}.Debug|x86.Build.0 = Debug|x86
{A602A9CA-793A-4096-A93C-799CA74519BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A602A9CA-793A-4096-A93C-799CA74519BF}.Release|Any CPU.Build.0 = Release|Any CPU
{A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x64.ActiveCfg = Release|x64
{A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x64.Build.0 = Release|x64
{A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x86.ActiveCfg = Release|x86
{A602A9CA-793A-4096-A93C-799CA74519BF}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 3 additions & 3 deletions Crc32.NET/Crc32Algorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static uint Append(uint initial, byte[] input, int offset, int length)
if (input == null)
throw new ArgumentNullException("input");
if (offset < 0 || length < 0 || offset + length > input.Length)
throw new ArgumentOutOfRangeException("length", "Selected range is outside the bounds of the input array");
throw new ArgumentOutOfRangeException("length");
return AppendInternal(initial, input, offset, length);
}

Expand Down Expand Up @@ -122,7 +122,7 @@ public static uint ComputeAndWriteToEnd(byte[] input, int offset, int length)
public static uint ComputeAndWriteToEnd(byte[] input)
{
if (input.Length < 4)
throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least");
throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least");
return ComputeAndWriteToEnd(input, 0, input.Length - 4);
}

Expand All @@ -146,7 +146,7 @@ public static bool IsValidWithCrcAtEnd(byte[] input, int offset, int lengthWithC
public static bool IsValidWithCrcAtEnd(byte[] input)
{
if (input.Length < 4)
throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least");
throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least");
return Append(0, input, 0, input.Length) == 0x2144DF1C;
}

Expand Down
6 changes: 3 additions & 3 deletions Crc32.NET/Crc32CAlgorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static uint Append(uint initial, byte[] input, int offset, int length)
if (input == null)
throw new ArgumentNullException("input");
if (offset < 0 || length < 0 || offset + length > input.Length)
throw new ArgumentOutOfRangeException("length", "Selected range is outside the bounds of the input array");
throw new ArgumentOutOfRangeException("length");
return AppendInternal(initial, input, offset, length);
}

Expand Down Expand Up @@ -121,7 +121,7 @@ public static uint ComputeAndWriteToEnd(byte[] input, int offset, int length)
public static uint ComputeAndWriteToEnd(byte[] input)
{
if (input.Length < 4)
throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least");
throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least");
return ComputeAndWriteToEnd(input, 0, input.Length - 4);
}

Expand All @@ -145,7 +145,7 @@ public static bool IsValidWithCrcAtEnd(byte[] input, int offset, int lengthWithC
public static bool IsValidWithCrcAtEnd(byte[] input)
{
if (input.Length < 4)
throw new ArgumentOutOfRangeException("input", "input array should be 4 bytes at least");
throw new ArgumentOutOfRangeException("input", "Input array should be 4 bytes at least");
return Append(0, input, 0, input.Length) == 0x48674BC7;
}

Expand Down

0 comments on commit 44aa6a6

Please sign in to comment.