[Modify] Rename it to ToArray
This commit is contained in:
parent
53d2077ca5
commit
4bc3c5ed60
@ -156,7 +156,7 @@ namespace WebSocketSharp
|
|||||||
yield return b;
|
yield return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] ToByteArray ()
|
public byte[] ToArray ()
|
||||||
{
|
{
|
||||||
return _data;
|
return _data;
|
||||||
}
|
}
|
||||||
|
@ -775,7 +775,7 @@ Extended Payload Length: {7}
|
|||||||
buff.Write (_maskingKey, 0, 4);
|
buff.Write (_maskingKey, 0, 4);
|
||||||
|
|
||||||
if (_payloadLength > 0) {
|
if (_payloadLength > 0) {
|
||||||
var bytes = _payloadData.ToByteArray ();
|
var bytes = _payloadData.ToArray ();
|
||||||
if (_payloadLength < 127)
|
if (_payloadLength < 127)
|
||||||
buff.Write (bytes, 0, bytes.Length);
|
buff.Write (bytes, 0, bytes.Length);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user