/third_party/libsnd/tests/ |
D | lossy_comp_test.c | 64 static void gen_signal_double (double *data, double scale, int channels, int datalen) ; 66 static void smoothed_diff_short (short *data, unsigned int datalen) ; 67 static void smoothed_diff_int (int *data, unsigned int datalen) ; 68 static void smoothed_diff_float (float *data, unsigned int datalen) ; 69 static void smoothed_diff_double (double *data, unsigned int datalen) ; 653 sf_count_t datalen ; in lcomp_test_short() local 659 datalen = BUFFER_SIZE / channels ; in lcomp_test_short() 664 gen_signal_double (orig_buffer.d, 32000.0, channels, (int) datalen) ; in lcomp_test_short() 665 for (k = 0 ; k < channels * datalen ; k++) in lcomp_test_short() 674 test_writef_short_or_die (file, 0, orig, datalen, __LINE__) ; in lcomp_test_short() [all …]
|
D | fix_this.c | 48 static void gen_signal_double (double *data, double scale, int datalen) ; 80 sf_count_t datalen, seekpos ; in lcomp_test_int() local 89 datalen = BUFFER_SIZE ; in lcomp_test_int() 96 gen_signal_double (orig_buffer.d, 32000.0 * scale, datalen) ; in lcomp_test_int() 97 for (k = 0 ; k < datalen ; k++) in lcomp_test_int() 112 if ((k = sf_writef_int (file, orig, datalen)) != datalen) in lcomp_test_int() 113 { printf ("sf_writef_int failed with short write (%" PRId64 " => %d).\n", datalen, k) ; in lcomp_test_int() 118 memset (data, 0, datalen * sizeof (int)) ; in lcomp_test_int() 134 if (sfinfo.frames < datalen) in lcomp_test_int() 135 …rames in file. (%" PRId64 " should be a little more than %" PRId64 ")\n", datalen, sfinfo.frames) ; in lcomp_test_int() [all …]
|
D | chunk_test.c | 136 chunk_info.datalen = (unsigned int) strlen (chunk_info.data) ; in chunk_test_helper() 138 length_before = chunk_info.datalen ; in chunk_test_helper() 146 memset (chunk_info.data, 0, chunk_info.datalen) ; in chunk_test_helper() 165 length_before > chunk_info.datalen || chunk_info.datalen - length_before > 4, in chunk_test_helper() 166 …ad chunk length %u (previous length %u)\n\n", __LINE__, testdata, chunk_info.datalen, length_before in chunk_test_helper() 169 chunk_info.data = malloc (chunk_info.datalen) ; in chunk_test_helper() 227 chunk_info.datalen = (unsigned int) strlen (chunk_info.data) ; in multichunk_test_helper() 229 length_before [i] = chunk_info.datalen ; in multichunk_test_helper() 237 memset (chunk_info.data, 0, chunk_info.datalen) ; in multichunk_test_helper() 266 length_before [i] > chunk_info.datalen || chunk_info.datalen - length_before [i] > 4, in multichunk_test_helper() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/resindvd/ |
D | gstpesfilter.c | 119 gint avail, datalen; in gst_pes_filter_parse() local 188 datalen = avail - 6; in gst_pes_filter_parse() 190 GST_DEBUG ("datalen %d", datalen); in gst_pes_filter_parse() 209 if (datalen == 0) in gst_pes_filter_parse() 220 datalen--; in gst_pes_filter_parse() 224 if (datalen < 1) in gst_pes_filter_parse() 232 if (datalen < 3) in gst_pes_filter_parse() 239 datalen -= 2; in gst_pes_filter_parse() 246 if (datalen < 5) in gst_pes_filter_parse() 250 datalen -= 5; in gst_pes_filter_parse() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/mpegdemux/ |
D | gstpesfilter.c | 119 gint avail, datalen; in gst_pes_filter_parse() local 188 datalen = avail - 6; in gst_pes_filter_parse() 190 GST_DEBUG ("datalen %d", datalen); in gst_pes_filter_parse() 209 if (datalen == 0) in gst_pes_filter_parse() 220 datalen--; in gst_pes_filter_parse() 224 if (datalen < 1) in gst_pes_filter_parse() 232 if (datalen < 3) in gst_pes_filter_parse() 239 datalen -= 2; in gst_pes_filter_parse() 246 if (datalen < 5) in gst_pes_filter_parse() 250 datalen -= 5; in gst_pes_filter_parse() [all …]
|
/third_party/libsnd/src/ |
D | audio_detect.c | 44 static void vote_for_format (VOTE * vote, const unsigned char * data, int datalen) ; 47 audio_detect (SF_PRIVATE * psf, AUDIO_DETECT *ad, const unsigned char * data, int datalen) in audio_detect() argument 53 if (ad == NULL || datalen < 256) in audio_detect() 56 vote_for_format (&vote, data, datalen) ; in audio_detect() 67 if (ad->endianness == SF_ENDIAN_LITTLE && vote.le_float > (3 * datalen) / 4) in audio_detect() 72 if (ad->endianness == SF_ENDIAN_LITTLE && vote.le_int_24_32 > (3 * datalen) / 4) in audio_detect() 81 vote_for_format (VOTE * vote, const unsigned char * data, int datalen) in vote_for_format() argument 87 datalen -= datalen % 4 ; in vote_for_format() 89 for (k = 0 ; k < datalen ; k ++) in vote_for_format()
|
D | dwd.c | 120 uint32_t id, datalen, frames, offset ; member 140 psf_binheader_readf (psf, "e24", &dwdh.maxval, &dwdh.datalen) ; in dwd_read_header() 174 if (psf->filelength != dwdh.offset + dwdh.datalen) in dwd_read_header() 175 …{ psf_log_printf (psf, " Data Length : %d (should be %D)\n", dwdh.datalen, psf->filelength - dw… in dwd_read_header() 176 dwdh.datalen = (uint32_t) (psf->filelength - dwdh.offset) ; in dwd_read_header() 179 psf_log_printf (psf, " Data Length : %d\n", dwdh.datalen) ; in dwd_read_header() 185 psf->datalength = dwdh.datalen ; in dwd_read_header()
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
D | ngtcp2_cid.c | 35 void ngtcp2_cid_init(ngtcp2_cid *cid, const uint8_t *data, size_t datalen) { in ngtcp2_cid_init() argument 36 assert(datalen <= NGTCP2_MAX_CIDLEN); in ngtcp2_cid_init() 38 cid->datalen = datalen; in ngtcp2_cid_init() 39 if (datalen) { in ngtcp2_cid_init() 40 ngtcp2_cpymem(cid->data, data, datalen); in ngtcp2_cid_init() 45 return cid->datalen == other->datalen && in ngtcp2_cid_eq() 46 0 == memcmp(cid->data, other->data, cid->datalen); in ngtcp2_cid_eq() 50 int s = lhs->datalen < rhs->datalen; in ngtcp2_cid_less() 51 size_t n = s ? lhs->datalen : rhs->datalen; in ngtcp2_cid_less() 57 int ngtcp2_cid_empty(const ngtcp2_cid *cid) { return cid->datalen == 0; } in ngtcp2_cid_empty()
|
D | ngtcp2_crypto.c | 131 return ngtcp2_put_varint_len(id) + ngtcp2_put_varint_len(cid->datalen) + in cid_paramlen() 132 cid->datalen; in cid_paramlen() 141 assert(cid->datalen == 0 || cid->datalen >= NGTCP2_MIN_CIDLEN); in write_cid_param() 142 assert(cid->datalen <= NGTCP2_MAX_CIDLEN); in write_cid_param() 145 p = ngtcp2_put_varint(p, cid->datalen); in write_cid_param() 146 if (cid->datalen) { in write_cid_param() 147 p = ngtcp2_cpymem(p, cid->data, cid->datalen); in write_cid_param() 179 assert(params->preferred_address.cid.datalen >= NGTCP2_MIN_CIDLEN); in ngtcp2_encode_transport_params_versioned() 180 assert(params->preferred_address.cid.datalen <= NGTCP2_MAX_CIDLEN); in ngtcp2_encode_transport_params_versioned() 184 params->preferred_address.cid.datalen /* CID */ + in ngtcp2_encode_transport_params_versioned() [all …]
|
D | ngtcp2_pkt.c | 64 size_t datalen, size_t short_dcidlen) { in ngtcp2_pkt_decode_version_cid() argument 70 assert(datalen); in ngtcp2_pkt_decode_version_cid() 79 if (datalen < len) { in ngtcp2_pkt_decode_version_cid() 85 if (datalen < len) { in ngtcp2_pkt_decode_version_cid() 90 if (datalen < len) { in ngtcp2_pkt_decode_version_cid() 104 datalen < NGTCP2_MAX_UDP_PAYLOAD_SIZE) { in ngtcp2_pkt_decode_version_cid() 128 if (datalen < len) { in ngtcp2_pkt_decode_version_cid() 387 size_t len = NGTCP2_MIN_LONG_HEADERLEN + hd->dcid.datalen + hd->scid.datalen - in ngtcp2_pkt_encode_hd_long() 415 *p++ = (uint8_t)hd->dcid.datalen; in ngtcp2_pkt_encode_hd_long() 416 if (hd->dcid.datalen) { in ngtcp2_pkt_encode_hd_long() [all …]
|
/third_party/nghttp2/src/ |
D | h2load_quic.cc | 61 uint64_t offset, const uint8_t *data, size_t datalen, in recv_stream_data() argument 64 if (c->quic_recv_stream_data(flags, stream_id, data, datalen) != 0) { in recv_stream_data() 75 const uint8_t *data, size_t datalen) { in quic_recv_stream_data() argument 77 worker->stats.bytes_total += datalen; in quic_recv_stream_data() 81 auto nconsumed = s->read_stream(flags, stream_id, data, datalen); in quic_recv_stream_data() 94 uint64_t offset, uint64_t datalen, void *user_data, in acked_stream_data_offset() argument 97 if (c->quic_acked_stream_data_offset(stream_id, datalen) != 0) { in acked_stream_data_offset() 104 int Client::quic_acked_stream_data_offset(int64_t stream_id, size_t datalen) { in quic_acked_stream_data_offset() argument 106 if (s->add_ack_offset(stream_id, datalen) != 0) { in quic_acked_stream_data_offset() 228 cid->datalen = cidlen; in get_new_connection_id() [all …]
|
D | shrpx_http3_upstream.h | 96 const uint8_t *data, size_t datalen); 108 size_t datalen); 109 int acked_stream_data_offset(int64_t stream_id, uint64_t datalen); 129 int http_acked_stream_data(Downstream *downstream, uint64_t datalen); 134 size_t datalen); 142 const uint8_t *data, size_t datalen, size_t gso_size); 144 void qlog_write(const void *data, size_t datalen, bool fin); 150 const uint8_t *data, size_t datalen, size_t gso_size); 183 size_t datalen; member
|
D | libevent_util.cc | 107 int EvbufferBuffer::add(const uint8_t *data, size_t datalen) { in add() argument 109 if (buflen_ + datalen > bufmax_) { in add() 122 if (datalen > bufmax_) { in add() 124 rv = evbuffer_add(evbuffer_, data, datalen); in add() 135 memcpy(buf_ + buflen_, data, datalen); in add() 136 buflen_ += datalen; in add()
|
D | shrpx_quic_listener.cc | 100 auto datalen = std::min(static_cast<size_t>(nread), gso_size); in on_read() local 108 << " ecn=" << log::hex << pi.ecn << log::dec << " " << datalen in on_read() 112 if (datalen == 0) { in on_read() 121 data, datalen); in on_read() 123 nread -= datalen; in on_read() 128 data += datalen; in on_read()
|
/third_party/libfuse/test/ |
D | test_syscalls.c | 658 int datalen = testdatalen; in test_truncate() local 662 res = create_testfile(testfile, data, datalen); in test_truncate() 676 if (len <= datalen) { in test_truncate() 681 res = check_data(testfile, data, 0, datalen); in test_truncate() 684 res = check_data(testfile, zerodata, datalen, in test_truncate() 685 len - datalen); in test_truncate() 706 int datalen = testdatalen; in test_ftruncate() local 711 res = create_testfile(testfile, data, datalen); in test_ftruncate() 744 if (len <= datalen) { in test_ftruncate() 749 res = check_data(testfile, data, 0, datalen); in test_ftruncate() [all …]
|
/third_party/libcoap/src/ |
D | coap_netif.c | 124 size_t datalen) { in coap_netif_dgrm_write() argument 136 bytes_written = coap_socket_send(sock, session, data, datalen); in coap_netif_dgrm_write() 140 coap_session_str(session), datalen, in coap_netif_dgrm_write() 145 if (bytes_written == (ssize_t)datalen) in coap_netif_dgrm_write() 150 coap_session_str(session), bytes_written, datalen); in coap_netif_dgrm_write() 213 coap_netif_strm_read(coap_session_t *session, uint8_t *data, size_t datalen) { in coap_netif_strm_read() argument 214 ssize_t bytes_read = coap_socket_read(&session->sock, data, datalen); in coap_netif_strm_read() 235 size_t datalen) { in coap_netif_strm_write() argument 236 ssize_t bytes_written = coap_socket_write(&session->sock, data, datalen); in coap_netif_strm_write() 241 coap_session_str(session), datalen, in coap_netif_strm_write() [all …]
|
D | coap_ws.c | 205 coap_ws_write(coap_session_t *session, const uint8_t *data, size_t datalen) { in coap_ws_write() argument 228 if (datalen <= 125) { in coap_ws_write() 229 ws_header[1] = datalen & WS_B1_LEN_MASK; in coap_ws_write() 230 } else if (datalen <= 0xffff) { in coap_ws_write() 232 ws_header[2] = (datalen >> 8) & 0xff; in coap_ws_write() 233 ws_header[3] = datalen & 0xff; in coap_ws_write() 237 ws_header[2] = ((uint64_t)datalen >> 56) & 0xff; in coap_ws_write() 238 ws_header[3] = ((uint64_t)datalen >> 48) & 0xff; in coap_ws_write() 239 ws_header[4] = ((uint64_t)datalen >> 40) & 0xff; in coap_ws_write() 240 ws_header[5] = ((uint64_t)datalen >> 32) & 0xff; in coap_ws_write() [all …]
|
D | coap_io_riot.c | 56 size_t datalen) { in coap_socket_send() argument 60 bytes_written = (ssize_t)datalen; in coap_socket_send() 62 bytes_written = send(sock->fd, data, datalen, 0); in coap_socket_send() 64 bytes_written = sendto(sock->fd, data, datalen, 0, in coap_socket_send()
|
/third_party/ltp/lib/ |
D | tst_rtnetlink.c | 22 size_t bufsize, datalen; member 32 size_t needed, offset, curlen = NLMSG_ALIGN(ctx->datalen); in tst_rtnl_grow_buffer() 78 ctx->datalen = 0; in tst_rtnl_create_context() 147 iov.iov_len = ctx->datalen; in tst_rtnl_send() 148 ret = safe_sendmsg(file, lineno, ctx->datalen, ctx->socket, &msg, 0); in tst_rtnl_send() 257 ctx->datalen = 0; in tst_rtnl_add_message() 265 ctx->datalen = NLMSG_ALIGN(ctx->datalen); in tst_rtnl_add_message() 277 ctx->datalen += ctx->curmsg->nlmsg_len; in tst_rtnl_add_message() 304 ctx->datalen = NLMSG_ALIGN(ctx->datalen) + attr->rta_len; in tst_rtnl_add_attr() 331 offset = NLMSG_ALIGN(ctx->datalen); in tst_rtnl_add_attr_list() [all …]
|
/third_party/openssl/providers/implementations/digests/ |
D | blake2s_prov.c | 249 int ossl_blake2s_update(BLAKE2S_CTX *c, const void *data, size_t datalen) in ossl_blake2s_update() argument 263 if (datalen > fill) { in ossl_blake2s_update() 269 datalen -= fill; in ossl_blake2s_update() 271 if (datalen > BLAKE2S_BLOCKBYTES) { in ossl_blake2s_update() 272 size_t stashlen = datalen % BLAKE2S_BLOCKBYTES; in ossl_blake2s_update() 278 datalen -= stashlen; in ossl_blake2s_update() 279 blake2s_compress(c, in, datalen); in ossl_blake2s_update() 280 in += datalen; in ossl_blake2s_update() 281 datalen = stashlen; in ossl_blake2s_update() 285 assert(datalen <= BLAKE2S_BLOCKBYTES); in ossl_blake2s_update() [all …]
|
D | blake2b_prov.c | 258 int ossl_blake2b_update(BLAKE2B_CTX *c, const void *data, size_t datalen) in ossl_blake2b_update() argument 272 if (datalen > fill) { in ossl_blake2b_update() 278 datalen -= fill; in ossl_blake2b_update() 280 if (datalen > BLAKE2B_BLOCKBYTES) { in ossl_blake2b_update() 281 size_t stashlen = datalen % BLAKE2B_BLOCKBYTES; in ossl_blake2b_update() 287 datalen -= stashlen; in ossl_blake2b_update() 288 blake2b_compress(c, in, datalen); in ossl_blake2b_update() 289 in += datalen; in ossl_blake2b_update() 290 datalen = stashlen; in ossl_blake2b_update() 294 assert(datalen <= BLAKE2B_BLOCKBYTES); in ossl_blake2b_update() [all …]
|
/third_party/node/deps/openssl/openssl/providers/implementations/digests/ |
D | blake2b_prov.c | 258 int ossl_blake2b_update(BLAKE2B_CTX *c, const void *data, size_t datalen) in ossl_blake2b_update() argument 272 if (datalen > fill) { in ossl_blake2b_update() 278 datalen -= fill; in ossl_blake2b_update() 280 if (datalen > BLAKE2B_BLOCKBYTES) { in ossl_blake2b_update() 281 size_t stashlen = datalen % BLAKE2B_BLOCKBYTES; in ossl_blake2b_update() 287 datalen -= stashlen; in ossl_blake2b_update() 288 blake2b_compress(c, in, datalen); in ossl_blake2b_update() 289 in += datalen; in ossl_blake2b_update() 290 datalen = stashlen; in ossl_blake2b_update() 294 assert(datalen <= BLAKE2B_BLOCKBYTES); in ossl_blake2b_update() [all …]
|
D | blake2s_prov.c | 249 int ossl_blake2s_update(BLAKE2S_CTX *c, const void *data, size_t datalen) in ossl_blake2s_update() argument 263 if (datalen > fill) { in ossl_blake2s_update() 269 datalen -= fill; in ossl_blake2s_update() 271 if (datalen > BLAKE2S_BLOCKBYTES) { in ossl_blake2s_update() 272 size_t stashlen = datalen % BLAKE2S_BLOCKBYTES; in ossl_blake2s_update() 278 datalen -= stashlen; in ossl_blake2s_update() 279 blake2s_compress(c, in, datalen); in ossl_blake2s_update() 280 in += datalen; in ossl_blake2s_update() 281 datalen = stashlen; in ossl_blake2s_update() 285 assert(datalen <= BLAKE2S_BLOCKBYTES); in ossl_blake2s_update() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | ieee802_11_common.h | 17 u8 datalen; member 235 (int) sizeof(*_elem) + _elem->datalen; \ 236 _elem = (const struct element *) (_elem->data + _elem->datalen)) 238 #define for_each_element_id(element, _id, data, datalen) \ argument 239 for_each_element(element, data, datalen) \ 245 element->datalen > 0 && \ 249 for_each_element(sub, (element)->data, (element)->datalen) 252 for_each_element_id(sub, id, (element)->data, (element)->datalen) 255 for_each_element_extid(sub, extid, (element)->data, (element)->datalen) 271 const void *data, size_t datalen) in for_each_element_completed() argument [all …]
|
/third_party/ltp/utils/sctp/testlib/ |
D | sctputil.c | 181 test_check_buf_notification(void *buf, int datalen, int msg_flags, in test_check_buf_notification() argument 194 if (datalen != expected_datalen) in test_check_buf_notification() 197 datalen, expected_datalen); in test_check_buf_notification() 221 test_check_msg_notification(struct msghdr *msg, int datalen, in test_check_msg_notification() argument 225 test_check_buf_notification(msg->msg_iov[0].iov_base, datalen, in test_check_msg_notification() 234 test_check_buf_data(void *buf LTP_ATTRIBUTE_UNUSED, int datalen, int msg_flags, in test_check_buf_data() argument 246 if (datalen != expected_datalen) in test_check_buf_data() 249 datalen, expected_datalen); in test_check_buf_data() 278 test_check_msg_data(struct msghdr *msg, int datalen, int expected_datalen, in test_check_msg_data() argument 299 test_check_buf_data(msg->msg_iov[0].iov_base, datalen, msg->msg_flags, in test_check_msg_data()
|