| 24 | std::size_t memlimit2; |
| 25 | bool res; |
| 26 | void run(stream_parser& p) { |
| 27 | boost::system::error_code ec; |
| 28 | |
| 29 | // Write the first part of the buffer |
| 30 | p.write( jsontext, ec); |
| 31 | |
| 32 | if(! ec) |
| 33 | p.finish( ec ); |
| 34 | |
| 35 | // Take ownership of the resulting value. |
| 36 | if(! ec) |
| 37 | { |
| 38 | value jv = p.release(); |
| 39 | res=serialize(jv).size()==42; |
| 40 | } else |
| 41 | res=false; |
| 42 | } |
| 43 | |
| 44 | // easy case - everything default |
| 45 | void useDefault() { |