[Modify] Polish it

This commit is contained in:
sta 2019-06-24 21:45:32 +09:00
parent 345e7decb1
commit 8357ed025c

View File

@ -1231,7 +1231,9 @@ namespace WebSocketSharp
return Encoding.UTF8.GetBytes (s);
}
internal static void WriteBytes (this Stream stream, byte[] bytes, int bufferLength)
internal static void WriteBytes (
this Stream stream, byte[] bytes, int bufferLength
)
{
using (var input = new MemoryStream (bytes))
input.CopyTo (stream, bufferLength);