Refactored a few for LineState.cs, to be PascalCase
This commit is contained in:
parent
c41c49960f
commit
595c68fe6d
@ -372,19 +372,19 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
var last = offset + count;
|
var last = offset + count;
|
||||||
read = 0;
|
read = 0;
|
||||||
for (var i = offset; i < last && _lineState != LineState.LF; i++) {
|
for (var i = offset; i < last && _lineState != LineState.Lf; i++) {
|
||||||
read++;
|
read++;
|
||||||
var b = buffer[i];
|
var b = buffer[i];
|
||||||
if (b == 13)
|
if (b == 13)
|
||||||
_lineState = LineState.CR;
|
_lineState = LineState.Cr;
|
||||||
else if (b == 10)
|
else if (b == 10)
|
||||||
_lineState = LineState.LF;
|
_lineState = LineState.Lf;
|
||||||
else
|
else
|
||||||
_currentLine.Append ((char) b);
|
_currentLine.Append ((char) b);
|
||||||
}
|
}
|
||||||
|
|
||||||
string ret = null;
|
string ret = null;
|
||||||
if (_lineState == LineState.LF) {
|
if (_lineState == LineState.Lf) {
|
||||||
_lineState = LineState.None;
|
_lineState = LineState.None;
|
||||||
ret = _currentLine.ToString ();
|
ret = _currentLine.ToString ();
|
||||||
_currentLine.Length = 0;
|
_currentLine.Length = 0;
|
||||||
|
@ -44,7 +44,7 @@ namespace WebSocketSharp.Net
|
|||||||
internal enum LineState
|
internal enum LineState
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
CR,
|
Cr,
|
||||||
LF
|
Lf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user