]> git.saurik.com Git - cycript.git/blobdiff - Handler.mm
Use Type as the prototype-bridge for metaclasses.
[cycript.git] / Handler.mm
index 1ad9ef656ba410f03d8f4f42184fb0338c485172..54d002f779ee62c5952c88963bff93bbcd4045ec 100644 (file)
@@ -99,11 +99,10 @@ struct CYClient :
                 return;
             data[size] = '\0';
 
-            CYDriver driver;
-            cy::parser parser(driver);
+            CYStream stream(data, data + size);
+            CYDriver driver(stream);
 
-            driver.data_ = data;
-            driver.size_ = size;
+            cy::parser parser(driver);
 
             const char *json;
             if (parser.parse() != 0 || !driver.errors_.empty()) {