src/cx/json.h

changeset 1193
cfa44f3f5e3b
parent 1192
1f69336faa63
equal deleted inserted replaced
1192:1f69336faa63 1193:cfa44f3f5e3b
489 CxJsonWriter cxJsonWriterPretty(bool use_spaces); 489 CxJsonWriter cxJsonWriterPretty(bool use_spaces);
490 490
491 /** 491 /**
492 * Writes a JSON value to a buffer or stream. 492 * Writes a JSON value to a buffer or stream.
493 * 493 *
494 * This function blocks until all data is written or an error when trying 494 * This function blocks until either all data is written, or an error occurs.
495 * to write data occurs.
496 * The write operation is not atomic in the sense that it might happen 495 * The write operation is not atomic in the sense that it might happen
497 * that the data is only partially written when an error occurs with no 496 * that the data is only partially written when an error occurs with no
498 * way to indicate how much data was written. 497 * way to indicate how much data was written.
499 * To avoid this problem, you can use a CxBuffer as @p target which is 498 * To avoid this problem, you can use a CxBuffer as @p target which is
500 * unlikely to fail a write operation and either use the buffer's flush 499 * unlikely to fail a write operation and either use the buffer's flush

mercurial