Fixed a bunch of inconsistent/wrong line endings in the C# part, no other changes
diff --git a/lib/csharp/src/Protocol/TCompactProtocol.cs b/lib/csharp/src/Protocol/TCompactProtocol.cs
index a498577..2c94c0c 100644
--- a/lib/csharp/src/Protocol/TCompactProtocol.cs
+++ b/lib/csharp/src/Protocol/TCompactProtocol.cs
@@ -478,12 +478,12 @@
* Read a message header.
*/
public override TMessage ReadMessageBegin()
- {
+ {
byte protocolId = (byte)ReadByte();
if (protocolId != PROTOCOL_ID)
{
throw new TProtocolException("Expected protocol id " + PROTOCOL_ID.ToString("X") + " but got " + protocolId.ToString("X"));
- }
+ }
byte versionAndType = (byte)ReadByte();
byte version = (byte)(versionAndType & VERSION_MASK);
if (version != VERSION)
@@ -521,7 +521,7 @@
* Read a field header off the wire.
*/
public override TField ReadFieldBegin()
- {
+ {
byte type = (byte)ReadByte();
// if it's a stop, then we can return immediately, as the struct is over.
@@ -566,7 +566,7 @@
*/
public override TMap ReadMapBegin()
{
- int size = (int)ReadVarint32();
+ int size = (int)ReadVarint32();
byte keyAndValueType = size == 0 ? (byte)0 : (byte)ReadByte();
return new TMap(getTType((byte)(keyAndValueType >> 4)), getTType((byte)(keyAndValueType & 0xf)), size);
}
@@ -578,7 +578,7 @@
* true size.
*/
public override TList ReadListBegin()
- {
+ {
byte size_and_type = (byte)ReadByte();
int size = (size_and_type >> 4) & 0x0f;
if (size == 15)
@@ -723,7 +723,7 @@
uint result = 0;
int shift = 0;
while (true)
- {
+ {
byte b = (byte)ReadByte();
result |= (uint)(b & 0x7f) << shift;
if ((b & 0x80) != 0x80) break;
@@ -741,7 +741,7 @@
int shift = 0;
ulong result = 0;
while (true)
- {
+ {
byte b = (byte)ReadByte();
result |= (ulong)(b & 0x7f) << shift;
if ((b & 0x80) != 0x80) break;