Home
last modified time | relevance | path

Searched refs:DynBuf (Results 1 – 9 of 9) sorted by relevance

/third_party/quickjs/
Dcutils.h236 typedef struct DynBuf { struct
243 } DynBuf; typedef
245 void dbuf_init(DynBuf *s);
246 void dbuf_init2(DynBuf *s, void *opaque, DynBufReallocFunc *realloc_func);
247 int dbuf_realloc(DynBuf *s, size_t new_size);
248 int dbuf_write(DynBuf *s, size_t offset, const uint8_t *data, size_t len);
249 int dbuf_put(DynBuf *s, const uint8_t *data, size_t len);
250 int dbuf_put_self(DynBuf *s, size_t offset, size_t len);
251 int dbuf_putc(DynBuf *s, uint8_t c);
252 int dbuf_putstr(DynBuf *s, const char *str);
[all …]
Dcutils.c89 void dbuf_init2(DynBuf *s, void *opaque, DynBufReallocFunc *realloc_func) in dbuf_init2()
98 void dbuf_init(DynBuf *s) in dbuf_init()
104 int dbuf_realloc(DynBuf *s, size_t new_size) in dbuf_realloc()
125 int dbuf_write(DynBuf *s, size_t offset, const uint8_t *data, size_t len) in dbuf_write()
137 int dbuf_put(DynBuf *s, const uint8_t *data, size_t len) in dbuf_put()
148 int dbuf_put_self(DynBuf *s, size_t offset, size_t len) in dbuf_put_self()
159 int dbuf_putc(DynBuf *s, uint8_t c) in dbuf_putc()
164 int dbuf_putstr(DynBuf *s, const char *str) in dbuf_putstr()
169 int __attribute__((format(printf, 2, 3))) dbuf_printf(DynBuf *s, in dbuf_printf()
194 void dbuf_free(DynBuf *s) in dbuf_free()
DTODO19 - test all DynBuf memory errors
Dunicode_gen.c1406 DynBuf dbuf_s, *dbuf = &dbuf_s; in build_prop_table()
1407 DynBuf dbuf1_s, *dbuf1 = &dbuf1_s; in build_prop_table()
1408 DynBuf dbuf2_s, *dbuf2 = &dbuf2_s; in build_prop_table()
1542 DynBuf dbuf_s, *dbuf = &dbuf_s; in build_general_category_table()
1621 DynBuf dbuf_s, *dbuf = &dbuf_s; in build_script_table()
1691 DynBuf dbuf_s, *dbuf = &dbuf_s; in build_script_ext_table()
1902 DynBuf dbuf_s, *dbuf = &dbuf_s; in build_cc_table()
1903 DynBuf dbuf1_s, *dbuf1 = &dbuf1_s; in build_cc_table()
Dquickjs-libc.c135 static void js_std_dbuf_init(JSContext *ctx, DynBuf *s) in js_std_dbuf_init()
151 DynBuf dbuf; in js_printf_internal()
163 int (*dbuf_printf_fun)(DynBuf *s, const char *fmt, ...) = (void*)dbuf_printf; in js_printf_internal()
1180 DynBuf dbuf; in js_std_file_getline()
1216 DynBuf dbuf; in js_std_file_readAsString()
1281 DynBuf *dbuf) in http_get_header_line()
1318 DynBuf cmd_buf; in js_std_urlGet()
1319 DynBuf data_buf_s, *data_buf = &data_buf_s; in js_std_urlGet()
1320 DynBuf header_buf_s, *header_buf = &header_buf_s; in js_std_urlGet()
Dlibunicode.c809 static void to_nfd_rec(DynBuf *dbuf, in to_nfd_rec()
859 DynBuf dbuf_s, *dbuf = &dbuf_s; in unicode_normalize()
Dlibregexp.c67 DynBuf byte_code;
79 DynBuf group_names;
114 static int dbuf_insert(DynBuf *s, int pos, int len) in dbuf_insert()
Dquickjs.c1439 static inline void js_dbuf_init(JSContext *ctx, DynBuf *s) in js_dbuf_init()
6361 static void dbuf_put_leb128(DynBuf *s, uint32_t v) in dbuf_put_leb128()
6376 static void dbuf_put_sleb128(DynBuf *s, int32_t v1) in dbuf_put_sleb128()
6495 DynBuf dbuf; in build_backtrace()
20020 DynBuf byte_code;
20053 DynBuf pc2line;
21554 DynBuf *bc = &fd->byte_code; in emit_op()
26217 DynBuf *bc = &s->cur_func->byte_code; in js_parse_for_in_of()
26609 DynBuf *bc = &s->cur_func->byte_code; in js_parse_statement_or_decl()
29396 DynBuf *bc, uint8_t *bc_buf, in optimize_scope_make_ref()
[all …]
Dlibbf.c3616 static void output_digits(DynBuf *s, const bf_t *a1, int radix, limb_t n_digits, in output_digits()
3704 DynBuf s_s, *s = &s_s; in bf_ftoa_internal()