You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
706 B
33 lines
706 B
namespace Hessian.NET.Tests |
|
{ |
|
internal static class ByteArray |
|
{ |
|
public static bool Equals(byte[] expect, byte[] value) |
|
{ |
|
if (null == expect) |
|
{ |
|
return null == value; |
|
} |
|
|
|
if (null == value) |
|
{ |
|
return false; |
|
} |
|
|
|
if (expect.Length != value.Length) |
|
{ |
|
return false; |
|
} |
|
|
|
for (var index = 0; index < expect.Length; index++) |
|
{ |
|
if (!expect[index].Equals(value[index])) |
|
{ |
|
return false; |
|
} |
|
} |
|
|
|
return true; |
|
} |
|
} |
|
}
|
|
|