[Modify] Polish it

This commit is contained in:
sta 2021-03-04 20:15:28 +09:00
parent c251d3eff7
commit 7796d803c4

View File

@ -291,7 +291,7 @@ namespace WebSocketSharp.Net
); );
} }
private void write (byte[] buffer, ref int offset, int length) private void write (byte[] buffer, int offset, int length)
{ {
if (_state == InputChunkState.End) if (_state == InputChunkState.End)
throwProtocolViolation ("The chunks were ended."); throwProtocolViolation ("The chunks were ended.");
@ -333,7 +333,7 @@ namespace WebSocketSharp.Net
} }
if (offset < length) if (offset < length)
write (buffer, ref offset, length); write (buffer, offset, length);
} }
private InputChunkState writeData ( private InputChunkState writeData (
@ -387,7 +387,7 @@ namespace WebSocketSharp.Net
if (count <= 0) if (count <= 0)
return; return;
write (buffer, ref offset, offset + count); write (buffer, offset, offset + count);
} }
#endregion #endregion