Performance refactoring.

This commit is contained in:
Christian Kratky
2017-07-28 22:21:48 +02:00
parent e021d5a56b
commit 0b0239bcf1
3 changed files with 80 additions and 92 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ namespace MQTTnet.Core.Serializer
return result;
}
public byte Read(int count)
public int Read(int count)
{
if (_index + count > 8)
{
@@ -42,7 +42,7 @@ namespace MQTTnet.Core.Serializer
_index++;
}
return (byte)result;
return result;
}
}
}