public void WriteTo(MqttBufferWriter target) { if (target == null) { throw new ArgumentNullException(nameof(target)); } target.WriteVariableByteInteger((uint)_bufferWriter.Length); target.Write(_bufferWriter); }