| 434 */ |
434 */ |
| 435 cx_attr_nonnull |
435 cx_attr_nonnull |
| 436 void cxJsonDestroy(CxJson *json); |
436 void cxJsonDestroy(CxJson *json); |
| 437 |
437 |
| 438 /** |
438 /** |
| |
439 * Destroys and re-initializes the json interface. |
| |
440 * |
| |
441 * You might want to use this, to reset the parser after |
| |
442 * encountering a syntax error. |
| |
443 * |
| |
444 * @param json the json interface |
| |
445 */ |
| |
446 cx_attr_nonnull |
| |
447 static inline void cxJsonReset(CxJson *json) { |
| |
448 const CxAllocator *allocator = json->allocator; |
| |
449 cxJsonDestroy(json); |
| |
450 cxJsonInit(json, allocator); |
| |
451 } |
| |
452 |
| |
453 /** |
| 439 * Adds more data to the input buffer. |
454 * Adds more data to the input buffer. |
| 440 * |
455 * |
| 441 * The data will be copied. |
456 * The data will be copied. |
| 442 * |
457 * |
| 443 * @param json the json interface |
458 * @param json the json interface |