         return 0
     }
     
+    public func decode() -> String? {
+        
+        let type = readType()
+        
+        switch type {
+        case .Nil:
+            return nil
+        case .String:
+            return readString()
+        default:
+            assertionFailure("Wrong type")
+        }
+        
+        return nil
+    }
+    
     // MARK: READ
     
     func getDataSection(length : Int) -> NSData {

        
        return value
    }



}

    
    func decode() -> Int?
    func decode() -> Int
    
    //func decode() -> Bool?
    func decode() -> Bool
    
    func decode() -> String?
    
}

