Refactor namespaces.

This commit is contained in:
Christian Kratky
2018-12-20 20:53:29 +01:00
parent 0dba57fe75
commit cc113a6c34
155 changed files with 3455 additions and 1083 deletions
+4 -2
View File
@@ -67,12 +67,14 @@ namespace MQTTnet.Formatter
public void WriteWithLengthPrefix(byte[] value)
{
if (value == null) throw new ArgumentNullException(nameof(value));
EnsureAdditionalCapacity(value.Length + 2);
Write((ushort)value.Length);
Write(value, 0, value.Length);
}
public void Write(byte @byte)
{
EnsureAdditionalCapacity(1);
@@ -173,7 +175,7 @@ namespace MQTTnet.Formatter
{
return;
}
while (newBufferLength < capacity)
{
newBufferLength *= 2;