Searched refs:bpos (Results 1 – 3 of 3) sorted by relevance
25 int bpos; member44 if ((p->size - p->bpos) > bufsize) { \45 memcpy(p->buf + p->bpos, (bufptr), bufsize); \46 p->bpos += bufsize; \47 p->buf[p->bpos]= '\0'; \51 #define printbuf_length(p) ((p)->bpos)
40 p->bpos = 0; in printbuf_new()71 p->bpos, min_size, p->size, new_size); in printbuf_extend()82 if (p->size <= p->bpos + size + 1) { in printbuf_memappend()83 if (printbuf_extend(p, p->bpos + size + 1) < 0) in printbuf_memappend()86 memcpy(p->buf + p->bpos, buf, size); in printbuf_memappend()87 p->bpos += size; in printbuf_memappend()88 p->buf[p->bpos]= '\0'; in printbuf_memappend()97 offset = pb->bpos; in printbuf_memset()106 if (pb->bpos < size_needed) in printbuf_memset()107 pb->bpos = size_needed; in printbuf_memset()[all …]
484 current = json_object_new_string_len(tok->pb->buf, tok->pb->bpos); in json_tokener_parse_ex()