         }
         
         return false
+    }
+    
+    public func decode() -> UInt8 {
+        
+        let type = readType()
+        
+        if type == .UInt8 {
+           return readUInt8()
+        } else {
+            assertionFailure("Wrong type")
+        }
+        
+        return 0
     }
     
     public func decode() -> Int? {

    public init() {}
    
    public func reset() {
        self.encodeOutput = NSMutableData()
        keeptIntType = false
    }
    
    

    func writeValue<T>(value : T) {
        
        var data = value
        output.appendBytes(&data, length:sizeof(T))
    }
    
    func writeType(type : CoderType) {
