[Modify] Polish it
This commit is contained in:
parent
d00b56de8a
commit
0b7c2208fa
@ -716,15 +716,17 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static byte[] InternalUrlEncodeToBytes (byte[] bytes, int offset, int count)
|
internal static byte[] InternalUrlEncodeToBytes (
|
||||||
|
byte[] bytes, int offset, int count
|
||||||
|
)
|
||||||
{
|
{
|
||||||
using (var res = new MemoryStream ()) {
|
using (var buff = new MemoryStream ()) {
|
||||||
var end = offset + count;
|
var end = offset + count;
|
||||||
for (var i = offset; i < end; i++)
|
for (var i = offset; i < end; i++)
|
||||||
urlEncode ((char) bytes[i], res, false);
|
urlEncode ((char) bytes[i], buff, false);
|
||||||
|
|
||||||
res.Close ();
|
buff.Close ();
|
||||||
return res.ToArray ();
|
return buff.ToArray ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user