summaryrefslogtreecommitdiff
path: root/csharp/src/Ice/HttpParser.cs
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-12-29 21:01:16 +0100
committerJose <jose@zeroc.com>2016-12-29 21:01:16 +0100
commit54941beff80f3ebab2b15af4609c7ec8bc0d941e (patch)
treebdd4eb6573f5c4673c2129cc2eb616b1188fc543 /csharp/src/Ice/HttpParser.cs
parentJavaScript Ice.Long fixes and improvements (diff)
downloadice-54941beff80f3ebab2b15af4609c7ec8bc0d941e.tar.bz2
ice-54941beff80f3ebab2b15af4609c7ec8bc0d941e.tar.xz
ice-54941beff80f3ebab2b15af4609c7ec8bc0d941e.zip
CSharp cleanup and fixes:
- Add EditorBrowsable(EditorBrowsableState.Never) to hidde internal public methods from Intellisense, see ICE-7448. - Remove Base64 and replace it with .NET System.Convert see ICE-7477 - Remove SysLogger as that was only used by Mono - Simplify ThreadPriority setting - Remove using statements that are not required - Normalize string, char, object spell, preferred over String, Char, Object - Shorthen qualifier names avoiding redundant scopes.
Diffstat (limited to 'csharp/src/Ice/HttpParser.cs')
-rw-r--r--csharp/src/Ice/HttpParser.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/csharp/src/Ice/HttpParser.cs b/csharp/src/Ice/HttpParser.cs
index 008ad3d6ca1..401169563f2 100644
--- a/csharp/src/Ice/HttpParser.cs
+++ b/csharp/src/Ice/HttpParser.cs
@@ -54,7 +54,7 @@ namespace IceInternal
Response
};
- internal int isCompleteMessage(IceInternal.ByteBuffer buf, int begin, int end)
+ internal int isCompleteMessage(ByteBuffer buf, int begin, int end)
{
byte[] raw = buf.rawBytes();
int p = begin;
@@ -99,7 +99,7 @@ namespace IceInternal
return -1;
}
- internal bool parse(IceInternal.ByteBuffer buf, int begin, int end)
+ internal bool parse(ByteBuffer buf, int begin, int end)
{
byte[] raw = buf.rawBytes();
int p = begin;
@@ -543,7 +543,7 @@ namespace IceInternal
_versionMinor = 0;
}
_versionMinor *= 10;
- _versionMinor += (int)(c - '0');
+ _versionMinor += (c - '0');
break;
}
case State.Response:
@@ -601,7 +601,7 @@ namespace IceInternal
_status = 0;
}
_status *= 10;
- _status += (int)(c - '0');
+ _status += (c - '0');
break;
}
case State.ResponseReasonStart: