Logo Search packages:      
Sourcecode: yajl version File versions

yajl_gen_status YAJL_API 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 283 of file yajl_gen.c.

References yajl_gen_get_buf(), and yajl_gen_status_ok.

Referenced by yajl_gen_get_buf().

    *buf = yajl_buf_data(g->buf);
    *len = yajl_buf_len(g->buf);
    return yajl_gen_status_ok;

Generated by  Doxygen 1.6.0   Back to index