[Modify] Add it
This commit is contained in:
parent
b1ee6d4475
commit
5e12709610
@ -290,6 +290,14 @@ namespace WebSocketSharp
|
|||||||
return contains (0);
|
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)
|
internal static T[] Copy<T> (this T[] source, long length)
|
||||||
{
|
{
|
||||||
var dest = new T[length];
|
var dest = new T[length];
|
||||||
|
Loading…
Reference in New Issue
Block a user