Home
last modified time | relevance | path

Searched refs:dbuf (Results 1 – 25 of 27) sorted by relevance

12

/third_party/e2fsprogs/lib/ext2fs/
Dtdbtool.c107 static int print_rec(TDB_CONTEXT *the_tdb, TDB_DATA key, TDB_DATA dbuf, void *state);
108 static int print_key(TDB_CONTEXT *the_tdb, TDB_DATA key, TDB_DATA dbuf, void *state);
109 static int print_hexkey(TDB_CONTEXT *the_tdb, TDB_DATA key, TDB_DATA dbuf, void *state);
209 TDB_DATA key, dbuf; in insert_tdb() local
218 dbuf.dptr = (unsigned char *)data; in insert_tdb()
219 dbuf.dsize = datalen; in insert_tdb()
221 if (tdb_store(tdb, key, dbuf, TDB_INSERT) == -1) { in insert_tdb()
228 TDB_DATA key, dbuf; in store_tdb() local
242 dbuf.dptr = (unsigned char *)data; in store_tdb()
243 dbuf.dsize = datalen; in store_tdb()
[all …]
Dtdb.c2773 TDB_DATA key, dbuf; in tdb_traverse_internal() local
2800 dbuf.dptr = key.dptr + rec.key_len; in tdb_traverse_internal()
2801 dbuf.dsize = rec.data_len; in tdb_traverse_internal()
2809 if (fn && fn(tdb, key, dbuf, private_data)) { in tdb_traverse_internal()
3169 static int tdb_update_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, TDB_DATA dbuf) in tdb_update_hash() argument
3179 if (rec.rec_len < key.dsize + dbuf.dsize + sizeof(tdb_off_t)) { in tdb_update_hash()
3185 dbuf.dptr, dbuf.dsize) == -1) in tdb_update_hash()
3188 if (dbuf.dsize != rec.data_len) { in tdb_update_hash()
3190 rec.data_len = dbuf.dsize; in tdb_update_hash()
3473 int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag) in tdb_store() argument
[all …]
Dtdb.h165 int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag);
/third_party/libsnd/src/
Ddouble64.c569 bufferlen = ARRAY_LEN (ubuf.dbuf) ; in host_read_d2s()
575 readcount = psf_fread (ubuf.dbuf, sizeof (double), bufferlen, psf) ; in host_read_d2s()
578 endswap_double_array (ubuf.dbuf, readcount) ; in host_read_d2s()
580 convert (ubuf.dbuf, readcount, ptr + total, scale) ; in host_read_d2s()
599 bufferlen = ARRAY_LEN (ubuf.dbuf) ; in host_read_d2i()
605 readcount = psf_fread (ubuf.dbuf, sizeof (double), bufferlen, psf) ; in host_read_d2i()
608 endswap_double_array (ubuf.dbuf, bufferlen) ; in host_read_d2i()
610 convert (ubuf.dbuf, readcount, ptr + total, scale) ; in host_read_d2i()
626 bufferlen = ARRAY_LEN (ubuf.dbuf) ; in host_read_d2f()
631 readcount = psf_fread (ubuf.dbuf, sizeof (double), bufferlen, psf) ; in host_read_d2f()
[all …]
Dcommand.c307 data = ubuf.dbuf ; in psf_calc_signal_max()
309 len = ARRAY_LEN (ubuf.dbuf) - (ARRAY_LEN (ubuf.dbuf) % psf->sf.channels) ; in psf_calc_signal_max()
350 len = ARRAY_LEN (ubuf.dbuf) - (ARRAY_LEN (ubuf.dbuf) % psf->sf.channels) ; in psf_calc_max_all_channels()
352 data = ubuf.dbuf ; in psf_calc_max_all_channels()
Dcommon.h375 { double dbuf [SF_BUFFER_LEN / sizeof (double)] ; member
/third_party/ejdb/src/tests/
Dejdb_test3.c23 char dbuf[1024]; in ejdb_test3_1() local
37 snprintf(dbuf, sizeof(dbuf), "{\"f\":{\"b\":%d},\"n\":%d}", i, i); in ejdb_test3_1()
38 rc = put_json(db, "c1", dbuf); in ejdb_test3_1()
41 rc = put_json(db, "c1", dbuf); in ejdb_test3_1()
44 rc = put_json(db, "c2", dbuf); in ejdb_test3_1()
351 char dbuf[1024]; in ejdb_test3_2() local
384 snprintf(dbuf, sizeof(dbuf), "{\"f\":{\"b\":%d},\"n\":%d}", v, i); in ejdb_test3_2()
385 rc = put_json(db, "a1", dbuf); in ejdb_test3_2()
388 snprintf(dbuf, sizeof(dbuf), "{\"f\":{\"b\":%d},\"n\":%d}", 126, 11); in ejdb_test3_2()
389 rc = put_json(db, "a1", dbuf); in ejdb_test3_2()
[all …]
Dejdb_test2.c30 char *dbuf = malloc(dbufsz); in ejdb_test2_2() local
32 CU_ASSERT_PTR_NOT_NULL_FATAL(dbuf); in ejdb_test2_2()
40 snprintf(dbuf, dbufsz, "{\"f\":%d, \"d\":\"%s\"}", i, vbuf); in ejdb_test2_2()
41 rc = put_json(db, "c1", dbuf); in ejdb_test2_2()
61 free(dbuf); in ejdb_test2_2()
/third_party/quickjs/
Dunicode_gen.c1406 DynBuf dbuf_s, *dbuf = &dbuf_s; in build_prop_table() local
1429 dbuf_init(dbuf); in build_prop_table()
1442 if (add_index && dbuf->size >= block_end_pos && bit == 0) { in build_prop_table()
1443 offset = (dbuf->size - block_end_pos); in build_prop_table()
1461 dbuf_putc(dbuf, (v << 3) | buf[i + 1]); in build_prop_table()
1464 dbuf_putc(dbuf, 0x80 + v); in build_prop_table()
1467 dbuf_putc(dbuf, 0x40 + (v >> 8)); in build_prop_table()
1468 dbuf_putc(dbuf, v); in build_prop_table()
1472 dbuf_putc(dbuf, 0x60 + (v >> 16)); in build_prop_table()
1473 dbuf_putc(dbuf, v >> 8); in build_prop_table()
[all …]
Dlibunicode.c809 static void to_nfd_rec(DynBuf *dbuf, in to_nfd_rec() argument
821 dbuf_put_u32(dbuf, 0x1100 + c / 588); in to_nfd_rec()
822 dbuf_put_u32(dbuf, 0x1161 + (c % 588) / 28); in to_nfd_rec()
825 dbuf_put_u32(dbuf, 0x11a7 + v); in to_nfd_rec()
829 to_nfd_rec(dbuf, (int *)res, l, is_compat); in to_nfd_rec()
831 dbuf_put_u32(dbuf, c); in to_nfd_rec()
859 DynBuf dbuf_s, *dbuf = &dbuf_s; in unicode_normalize() local
863 dbuf_init2(dbuf, opaque, realloc_func); in unicode_normalize()
864 if (dbuf_realloc(dbuf, sizeof(int) * src_len)) in unicode_normalize()
873 buf = (int *)dbuf->buf; in unicode_normalize()
[all …]
Dquickjs-libc.c151 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()
[all …]
/third_party/toybox/toys/other/
Dbzcat.c77 unsigned int *dbuf; member
324 unsigned hh, *dbuf = bw->dbuf; in read_huffman_data() local
410 while (hh--) dbuf[dbufCount++] = uc; in read_huffman_data()
433 dbuf[dbufCount++] = (unsigned int)uc; in read_huffman_data()
455 unsigned int *dbuf = bw->dbuf; in burrows_wheeler_prep() local
469 unsigned char uc = dbuf[ii]; in burrows_wheeler_prep()
470 dbuf[byteCount[uc]] |= (ii << 8); in burrows_wheeler_prep()
485 bw->writePos = dbuf[bw->origPtr]; in burrows_wheeler_prep()
515 unsigned int *dbuf = bw->dbuf; in write_bunzip_data() local
547 pos = dbuf[pos]; in write_bunzip_data()
[all …]
/third_party/openssl/test/
Dafalgtest.c39 unsigned char dbuf[BUFFER_SIZE + 32]; in test_afalg_aes_cbc() local
81 || !TEST_true(EVP_CipherUpdate(ctx, dbuf, &decl, ebuf, encl)) in test_afalg_aes_cbc()
82 || !TEST_true(EVP_CipherFinal_ex(ctx, dbuf+decl, &decf))) in test_afalg_aes_cbc()
87 || !TEST_mem_eq(dbuf, BUFFER_SIZE, in, BUFFER_SIZE)) in test_afalg_aes_cbc()
/third_party/libwebsockets/lib/misc/
Dlws-struct-lejp.c553 char dbuf[72]; in lws_struct_json_serialize() local
560 while (len > sizeof(dbuf) + 20) { in lws_struct_json_serialize()
626 q = dbuf; in lws_struct_json_serialize()
629 budget = (unsigned int)lws_snprintf(dbuf, sizeof(dbuf), in lws_struct_json_serialize()
632 budget = (unsigned int)lws_snprintf(dbuf, sizeof(dbuf), in lws_struct_json_serialize()
649 q = dbuf; in lws_struct_json_serialize()
650 budget = (unsigned int)lws_snprintf(dbuf, sizeof(dbuf), "%lld", li); in lws_struct_json_serialize()
719 q = dbuf; in lws_struct_json_serialize()
725 budget = (unsigned int)lws_snprintf(dbuf, 15, "\"schema\":"); in lws_struct_json_serialize()
727 dbuf[budget++] = ' '; in lws_struct_json_serialize()
[all …]
/third_party/optimized-routines/string/test/
Dmemcpy.c41 static unsigned char *dbuf; variable
55 unsigned char *dst = alignup (dbuf); in test()
99 dbuf = mte_mmap (LEN + 2 * A); in main()
Dstpcpy.c44 static char *dbuf; variable
58 char *dst = alignup (dbuf); in test()
109 dbuf = mte_mmap (LEN + 3 * ALIGN); in main()
Dstrcpy.c42 static char *dbuf; variable
56 char *dst = alignup (dbuf); in test()
107 dbuf = mte_mmap (LEN + 3 * ALIGN); in main()
Dmemmove.c39 static unsigned char *dbuf; variable
53 unsigned char *dst = alignup (dbuf); in test()
137 dbuf = mte_mmap (LEN + 2 * A); in main()
/third_party/node/deps/npm/node_modules/sshpk/lib/formats/
Dx509-pem.js58 var dbuf = x509.write(cert, options);
61 var tmp = dbuf.toString('base64');
/third_party/ffmpeg/libavfilter/
Daf_compand.c240 double *dbuf = (double *)delay_frame->extended_data[chan]; in compand_delay() local
270 dst[oindex++] = dbuf[dindex] * get_volume(s, cp->volume); in compand_delay()
275 dbuf[dindex] = in; in compand_delay()
312 double *dbuf = (double *)delay_frame->extended_data[chan]; in compand_drain() local
318 dst[i] = dbuf[dindex] * get_volume(s, cp->volume); in compand_drain()
Daf_aecho.c205 type *dbuf = (type *)delayptrs[chan]; \
216 out += dbuf[ix] * ctx->decay[j]; \
221 dbuf[index] = in; \
/third_party/ffmpeg/libavcodec/
Dclearvideo.c231 uint8_t *sbuf, *dbuf; in copy_block() local
246 dbuf = dst->data[plane]; in copy_block()
249 uint8_t *dptr = &dbuf[doff]; in copy_block()
271 uint8_t *dbuf = dst->data[plane]; in copyadd_block() local
282 uint8_t *dptr = &dbuf[doff]; in copyadd_block()
/third_party/python/Lib/
Dtarfile.py382 self.dbuf = b""
394 self.dbuf = b""
474 self.dbuf = b""
532 c = len(self.dbuf)
533 t = [self.dbuf]
550 self.dbuf = t[size:]
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/
Duser_socket.c992 void *dbuf, in userspace_sctp_recvmsg() argument
1008 iov[0].iov_base = dbuf; in userspace_sctp_recvmsg()
1079 void *dbuf, in usrsctp_recvv() argument
1103 iov[0].iov_base = dbuf; in usrsctp_recvv()
Dusrsctp.h961 void *dbuf,

12