Lines Matching refs:dbuf
151 DynBuf dbuf; in js_printf_internal() local
165 js_std_dbuf_init(ctx, &dbuf); in js_printf_internal()
178 dbuf_put(&dbuf, p, fmt - p); in js_printf_internal()
264 dbuf_put(&dbuf, cbuf, len); in js_printf_internal()
287 dbuf_printf_fun(&dbuf, fmtbuf, (int64_t)int64_arg); in js_printf_internal()
294 dbuf_printf_fun(&dbuf, fmtbuf, (long long)int64_arg); in js_printf_internal()
297 dbuf_printf_fun(&dbuf, fmtbuf, (int)int64_arg); in js_printf_internal()
308 dbuf_printf_fun(&dbuf, fmtbuf, string_arg); in js_printf_internal()
324 dbuf_printf_fun(&dbuf, fmtbuf, double_arg); in js_printf_internal()
328 dbuf_putc(&dbuf, '%'); in js_printf_internal()
343 if (dbuf.error) { in js_printf_internal()
347 len = fwrite(dbuf.buf, 1, dbuf.size, fp); in js_printf_internal()
350 res = JS_NewStringLen(ctx, (char *)dbuf.buf, dbuf.size); in js_printf_internal()
353 dbuf_free(&dbuf); in js_printf_internal()
357 dbuf_free(&dbuf); in js_printf_internal()
1180 DynBuf dbuf; in js_std_file_getline() local
1186 js_std_dbuf_init(ctx, &dbuf); in js_std_file_getline()
1190 if (dbuf.size == 0) { in js_std_file_getline()
1192 dbuf_free(&dbuf); in js_std_file_getline()
1200 if (dbuf_putc(&dbuf, c)) { in js_std_file_getline()
1201 dbuf_free(&dbuf); in js_std_file_getline()
1205 obj = JS_NewStringLen(ctx, (const char *)dbuf.buf, dbuf.size); in js_std_file_getline()
1206 dbuf_free(&dbuf); in js_std_file_getline()
1216 DynBuf dbuf; in js_std_file_readAsString() local
1237 js_std_dbuf_init(ctx, &dbuf); in js_std_file_readAsString()
1242 if (dbuf_putc(&dbuf, c)) { in js_std_file_readAsString()
1243 dbuf_free(&dbuf); in js_std_file_readAsString()
1248 obj = JS_NewStringLen(ctx, (const char *)dbuf.buf, dbuf.size); in js_std_file_readAsString()
1249 dbuf_free(&dbuf); in js_std_file_readAsString()
1281 DynBuf *dbuf) in http_get_header_line() argument
1293 if (dbuf) in http_get_header_line()
1294 dbuf_putc(dbuf, c); in http_get_header_line()