One output sink used unchanged for measuring and writing JSON text. More...
Data Fields | |
| char * | buf |
| size_t | cap |
| size_t | len |
| const char * | indent |
| size_t | indent_len |
| const char * | newline |
| size_t | newline_len |
| int | pretty |
Detailed Description
One output sink used unchanged for measuring and writing JSON text.
Definition at line 1315 of file jsonbourne.c.
Field Documentation
◆ buf
| char* jsonbourne_write_ctx::buf |
NULL while measuring; destination otherwise.
Definition at line 1316 of file jsonbourne.c.
◆ cap
| size_t jsonbourne_write_ctx::cap |
Hard output capacity, including any terminator.
Definition at line 1317 of file jsonbourne.c.
◆ indent
| const char* jsonbourne_write_ctx::indent |
Borrowed whitespace indentation string.
Definition at line 1319 of file jsonbourne.c.
◆ indent_len
| size_t jsonbourne_write_ctx::indent_len |
Cached indentation byte length.
Definition at line 1320 of file jsonbourne.c.
◆ len
| size_t jsonbourne_write_ctx::len |
Bytes counted/written so far.
Definition at line 1318 of file jsonbourne.c.
◆ newline
| const char* jsonbourne_write_ctx::newline |
Borrowed whitespace line separator.
Definition at line 1321 of file jsonbourne.c.
◆ newline_len
| size_t jsonbourne_write_ctx::newline_len |
Cached line-separator byte length.
Definition at line 1322 of file jsonbourne.c.
◆ pretty
| int jsonbourne_write_ctx::pretty |
Nonzero enables indentation/newlines.
Definition at line 1323 of file jsonbourne.c.
The documentation for this struct was generated from the following file:
- src/jsonbourne.c