Home
last modified time | relevance | path

Searched refs:bpos (Results 1 – 3 of 3) sorted by relevance

/hardware/qcom/msm8998/json-c/
Dprintbuf.h25 int bpos; member
44 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)
Dprintbuf.c40 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 …]
Djson_tokener.c484 current = json_object_new_string_len(tok->pb->buf, tok->pb->bpos); in json_tokener_parse_ex()