 
     var buffer = [Int8]()
 
+    var reading = true
+
     func flush() -> [Int8]? {
         let size = buffer.count
         for i in 0..<size {

        if let line = flush() {
            return line
        }
        while true {
            let chunk = try reader.read(128)
            if chunk.count == 0 {
                if buffer.count == 0 {
                    return nil
                }
                return buffer
            }
            buffer.appendContentsOf(chunk)
            if let line = flush() {
                return line
            }
        }
    }

    func read(maxLength: Int) throws -> [[Int8]] {

            throw ReaderError.GenericError(error: errno)
        }
        var bytes = [Int8]()
        for i in 0..<size {
            bytes.append(buffer[i])
        }
        buffer.dealloc(maxLength)
