[Modify] Add it

This commit is contained in:
sta 2017-01-04 17:23:52 +09:00
parent b1ee6d4475
commit 5e12709610

View File

@ -290,6 +290,14 @@ namespace WebSocketSharp
return contains (0);
}
internal static T[] Copy<T> (this T[] source, int length)
{
var dest = new T[length];
Array.Copy (source, 0, dest, 0, length);
return dest;
}
internal static T[] Copy<T> (this T[] source, long length)
{
var dest = new T[length];