Home
last modified time | relevance | path

Searched refs:pb (Results 1 – 25 of 34) sorted by relevance

12

/device/google/coral/json-c/
Djson_tokener.c118 tok->pb = printbuf_new(); in json_tokener_new_ex()
132 if (tok->pb) printbuf_free(tok->pb); in json_tokener_free()
270 printbuf_reset(tok->pb); in json_tokener_parse_ex()
271 printbuf_memappend_fast(tok->pb, &c, 1); in json_tokener_parse_ex()
294 printbuf_reset(tok->pb); in json_tokener_parse_ex()
300 printbuf_reset(tok->pb); in json_tokener_parse_ex()
311 printbuf_reset(tok->pb); in json_tokener_parse_ex()
319 printbuf_reset(tok->pb); in json_tokener_parse_ex()
338 printbuf_reset(tok->pb); in json_tokener_parse_ex()
359 printbuf_memappend_fast(tok->pb, &c, 1); in json_tokener_parse_ex()
[all …]
Djson_object.c100 static int json_escape_str(struct printbuf *pb, char *str, int len) in json_escape_str() argument
118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
120 if(c == '\b') printbuf_memappend(pb, "\\b", 2); in json_escape_str()
121 else if(c == '\n') printbuf_memappend(pb, "\\n", 2); in json_escape_str()
122 else if(c == '\r') printbuf_memappend(pb, "\\r", 2); in json_escape_str()
123 else if(c == '\t') printbuf_memappend(pb, "\\t", 2); in json_escape_str()
124 else if(c == '\f') printbuf_memappend(pb, "\\f", 2); in json_escape_str()
125 else if(c == '"') printbuf_memappend(pb, "\\\"", 2); in json_escape_str()
126 else if(c == '\\') printbuf_memappend(pb, "\\\\", 2); in json_escape_str()
127 else if(c == '/') printbuf_memappend(pb, "\\/", 2); in json_escape_str()
[all …]
Dprintbuf.c92 int printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len) in printbuf_memset() argument
97 offset = pb->bpos; in printbuf_memset()
99 if (pb->size < size_needed) in printbuf_memset()
101 if (printbuf_extend(pb, size_needed) < 0) in printbuf_memset()
105 memset(pb->buf + offset, charvalue, len); in printbuf_memset()
106 if (pb->bpos < size_needed) in printbuf_memset()
107 pb->bpos = size_needed; in printbuf_memset()
Djson_util.c69 struct printbuf *pb; in json_object_from_file() local
79 if(!(pb = printbuf_new())) { in json_object_from_file()
85 printbuf_memappend(pb, buf, ret); in json_object_from_file()
91 printbuf_free(pb); in json_object_from_file()
94 obj = json_tokener_parse(pb->buf); in json_object_from_file()
95 printbuf_free(pb); in json_object_from_file()
Dprintbuf.h62 printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len);
Djson_tokener.h81 struct printbuf *pb; member
/device/google/crosshatch/json-c/
Djson_tokener.c118 tok->pb = printbuf_new(); in json_tokener_new_ex()
132 if (tok->pb) printbuf_free(tok->pb); in json_tokener_free()
270 printbuf_reset(tok->pb); in json_tokener_parse_ex()
271 printbuf_memappend_fast(tok->pb, &c, 1); in json_tokener_parse_ex()
294 printbuf_reset(tok->pb); in json_tokener_parse_ex()
300 printbuf_reset(tok->pb); in json_tokener_parse_ex()
311 printbuf_reset(tok->pb); in json_tokener_parse_ex()
319 printbuf_reset(tok->pb); in json_tokener_parse_ex()
338 printbuf_reset(tok->pb); in json_tokener_parse_ex()
359 printbuf_memappend_fast(tok->pb, &c, 1); in json_tokener_parse_ex()
[all …]
Djson_object.c100 static int json_escape_str(struct printbuf *pb, char *str, int len) in json_escape_str() argument
118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
120 if(c == '\b') printbuf_memappend(pb, "\\b", 2); in json_escape_str()
121 else if(c == '\n') printbuf_memappend(pb, "\\n", 2); in json_escape_str()
122 else if(c == '\r') printbuf_memappend(pb, "\\r", 2); in json_escape_str()
123 else if(c == '\t') printbuf_memappend(pb, "\\t", 2); in json_escape_str()
124 else if(c == '\f') printbuf_memappend(pb, "\\f", 2); in json_escape_str()
125 else if(c == '"') printbuf_memappend(pb, "\\\"", 2); in json_escape_str()
126 else if(c == '\\') printbuf_memappend(pb, "\\\\", 2); in json_escape_str()
127 else if(c == '/') printbuf_memappend(pb, "\\/", 2); in json_escape_str()
[all …]
Dprintbuf.c92 int printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len) in printbuf_memset() argument
97 offset = pb->bpos; in printbuf_memset()
99 if (pb->size < size_needed) in printbuf_memset()
101 if (printbuf_extend(pb, size_needed) < 0) in printbuf_memset()
105 memset(pb->buf + offset, charvalue, len); in printbuf_memset()
106 if (pb->bpos < size_needed) in printbuf_memset()
107 pb->bpos = size_needed; in printbuf_memset()
Djson_util.c69 struct printbuf *pb; in json_object_from_file() local
79 if(!(pb = printbuf_new())) { in json_object_from_file()
85 printbuf_memappend(pb, buf, ret); in json_object_from_file()
91 printbuf_free(pb); in json_object_from_file()
94 obj = json_tokener_parse(pb->buf); in json_object_from_file()
95 printbuf_free(pb); in json_object_from_file()
Dprintbuf.h62 printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len);
Djson_tokener.h81 struct printbuf *pb; member
/device/google/bonito/json-c/
Djson_tokener.c118 tok->pb = printbuf_new(); in json_tokener_new_ex()
132 if (tok->pb) printbuf_free(tok->pb); in json_tokener_free()
270 printbuf_reset(tok->pb); in json_tokener_parse_ex()
271 printbuf_memappend_fast(tok->pb, &c, 1); in json_tokener_parse_ex()
294 printbuf_reset(tok->pb); in json_tokener_parse_ex()
300 printbuf_reset(tok->pb); in json_tokener_parse_ex()
311 printbuf_reset(tok->pb); in json_tokener_parse_ex()
319 printbuf_reset(tok->pb); in json_tokener_parse_ex()
338 printbuf_reset(tok->pb); in json_tokener_parse_ex()
359 printbuf_memappend_fast(tok->pb, &c, 1); in json_tokener_parse_ex()
[all …]
Djson_object.c100 static int json_escape_str(struct printbuf *pb, char *str, int len) in json_escape_str() argument
118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
120 if(c == '\b') printbuf_memappend(pb, "\\b", 2); in json_escape_str()
121 else if(c == '\n') printbuf_memappend(pb, "\\n", 2); in json_escape_str()
122 else if(c == '\r') printbuf_memappend(pb, "\\r", 2); in json_escape_str()
123 else if(c == '\t') printbuf_memappend(pb, "\\t", 2); in json_escape_str()
124 else if(c == '\f') printbuf_memappend(pb, "\\f", 2); in json_escape_str()
125 else if(c == '"') printbuf_memappend(pb, "\\\"", 2); in json_escape_str()
126 else if(c == '\\') printbuf_memappend(pb, "\\\\", 2); in json_escape_str()
127 else if(c == '/') printbuf_memappend(pb, "\\/", 2); in json_escape_str()
[all …]
Dprintbuf.c92 int printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len) in printbuf_memset() argument
97 offset = pb->bpos; in printbuf_memset()
99 if (pb->size < size_needed) in printbuf_memset()
101 if (printbuf_extend(pb, size_needed) < 0) in printbuf_memset()
105 memset(pb->buf + offset, charvalue, len); in printbuf_memset()
106 if (pb->bpos < size_needed) in printbuf_memset()
107 pb->bpos = size_needed; in printbuf_memset()
Djson_util.c69 struct printbuf *pb; in json_object_from_file() local
79 if(!(pb = printbuf_new())) { in json_object_from_file()
85 printbuf_memappend(pb, buf, ret); in json_object_from_file()
91 printbuf_free(pb); in json_object_from_file()
94 obj = json_tokener_parse(pb->buf); in json_object_from_file()
95 printbuf_free(pb); in json_object_from_file()
Dprintbuf.h62 printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len);
Djson_tokener.h81 struct printbuf *pb; member
Djson_object.h94 struct printbuf *pb,
/device/google/bonito/sdm710/kernel-headers/linux/
Dmsm_audio_alac.h13 uint8_t pb; /* currently unused */ member
/device/google/crosshatch/sdm845/kernel-headers/linux/
Dmsm_audio_alac.h27 uint8_t pb; member
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/
Dmsm_audio_alac.h13 uint8_t pb; /* currently unused */ member
/device/google/bonito/sdm710/original-kernel-headers/linux/
Dmsm_audio_alac.h13 uint8_t pb; /* currently unused */ member
/device/google/crosshatch/sdm845/original-kernel-headers/linux/
Dmsm_audio_alac.h13 uint8_t pb; /* currently unused */ member
/device/google/coral-kernel/sm8150/kernel-headers/linux/
Dmsm_audio_alac.h27 uint8_t pb; member

12