[Modify] Rename it

This commit is contained in:
sta 2021-03-24 19:36:53 +09:00
parent 6b10c41bab
commit 177323e1da
2 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ namespace WebSocketSharp.Net
#region Public Properties #region Public Properties
public bool WantMore { public bool WantsMore {
get { get {
return _state < InputChunkState.End; return _state < InputChunkState.End;
} }

View File

@ -99,8 +99,8 @@ namespace WebSocketSharp.Net
rstate.Offset += nread; rstate.Offset += nread;
rstate.Count -= nread; rstate.Count -= nread;
if (rstate.Count == 0 || !_decoder.WantMore || nread == 0) { if (rstate.Count == 0 || !_decoder.WantsMore || nread == 0) {
_noMoreData = !_decoder.WantMore && nread == 0; _noMoreData = !_decoder.WantsMore && nread == 0;
ares.Count = rstate.InitialCount - rstate.Count; ares.Count = rstate.InitialCount - rstate.Count;
ares.Complete (); ares.Complete ();
@ -175,7 +175,7 @@ namespace WebSocketSharp.Net
return ares; return ares;
} }
if (!_decoder.WantMore) { if (!_decoder.WantsMore) {
_noMoreData = nread == 0; _noMoreData = nread == 0;
ares.Count = nread; ares.Count = nread;