Logo Search packages:      
Sourcecode: yajl version File versions  Download package

YAJL_API yajl_gen_status yajl_gen_get_buf ( yajl_gen  hand,
const unsigned char **  buf,
unsigned int *  len 
)

access the null terminated generator buffer. If incrementally outputing JSON, one should call yajl_gen_clear to clear the buffer. This allows stream generation.

Definition at line 334 of file yajl_gen.c.

References yajl_gen_get_buf(), yajl_gen_no_buf, and yajl_gen_status_ok.

Referenced by yajl_gen_get_buf().

{
    if (g->print != (yajl_print_t)&yajl_buf_append) return yajl_gen_no_buf;
    *buf = yajl_buf_data((yajl_buf)g->ctx);
    *len = yajl_buf_len((yajl_buf)g->ctx);
    return yajl_gen_status_ok;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index