Home
last modified time | relevance | path

Searched refs:read_len (Results 1 – 25 of 30) sorted by relevance

12

/third_party/libsnd/programs/
Dsndfile-interleave.c170 { int max_read_len, read_len ; in interleave_int() local
177 { read_len = (int) sf_read_int (state->infile [ch], state->din.i, BUFFER_LEN) ; in interleave_int()
178 if (read_len < BUFFER_LEN) in interleave_int()
179 memset (state->din.i + read_len, 0, sizeof (state->din.i [0]) * (BUFFER_LEN - read_len)) ; in interleave_int()
184 max_read_len = MAX (max_read_len, read_len) ; in interleave_int()
196 { int max_read_len, read_len ; in interleave_double() local
203 { read_len = (int) sf_read_double (state->infile [ch], state->din.d, BUFFER_LEN) ; in interleave_double()
204 if (read_len < BUFFER_LEN) in interleave_double()
205 memset (state->din.d + read_len, 0, sizeof (state->din.d [0]) * (BUFFER_LEN - read_len)) ; in interleave_double()
210 max_read_len = MAX (max_read_len, read_len) ; in interleave_double()
Dsndfile-deinterleave.c190 { int read_len ; in deinterleave_int() local
194 { read_len = (int) sf_readf_int (state->infile, state->din.i, BUFFER_LEN) ; in deinterleave_int()
197 { for (k = 0 ; k < read_len ; k++) in deinterleave_int()
199 sf_write_int (state->outfile [ch], state->dout.i, read_len) ; in deinterleave_int()
202 while (read_len > 0) ; in deinterleave_int()
208 { int read_len ; in deinterleave_double() local
212 { read_len = (int) sf_readf_double (state->infile, state->din.d, BUFFER_LEN) ; in deinterleave_double()
215 { for (k = 0 ; k < read_len ; k++) in deinterleave_double()
217 sf_write_double (state->outfile [ch], state->dout.d, read_len) ; in deinterleave_double()
220 while (read_len > 0) ; in deinterleave_double()
/third_party/skia/third_party/externals/freetype/src/cid/
Dcidparse.c117 FT_ULong read_len = 256 + STARTDATA_LEN; in cid_parser_new() local
129 read_len = FT_MIN( read_len, stream_len ); in cid_parser_new()
130 if ( FT_STREAM_READ( p, read_len ) ) in cid_parser_new()
134 p[read_len] = '\0'; in cid_parser_new()
136 limit = p + read_len - SFNTS_LEN; in cid_parser_new()
155 if ( read_offset + read_len < STARTDATA_LEN ) in cid_parser_new()
163 buffer + read_offset + read_len - STARTDATA_LEN, in cid_parser_new()
167 read_len = 256; in cid_parser_new()
/third_party/ffmpeg/libavcodec/
Dflac_parser.c235 int search_end, size = 0, read_len, temp; in find_new_headers() local
241 read_len = search_end - search_start + 1; in find_new_headers()
242 buf = flac_fifo_read(fpc, search_start, &read_len); in find_new_headers()
243 size = find_headers_search(fpc, buf, read_len, search_start); in find_new_headers()
244 search_start += read_len - 1; in find_new_headers()
250 wrap[0] = buf[read_len - 1]; in find_new_headers()
252 read_len = search_end - (search_start + 1) + 1; in find_new_headers()
254 buf = flac_fifo_read(fpc, search_start + 1, &read_len); in find_new_headers()
264 temp = find_headers_search(fpc, buf, read_len, search_start); in find_new_headers()
266 search_start += read_len - 1; in find_new_headers()
[all …]
/third_party/cares/
Dbackport-CVE-2023-32067.patch19 + ares_ssize_t read_len;
33 + read_len = -1;
43 + read_len = socket_recvfrom(channel, server->udp_socket, (void *)buf,
48 + if (read_len == 0) {
54 + } else if (read_len < 0) {
74 + process_answer(channel, buf, (int)read_len, i, 0, now);
76 + } while (read_len >= 0);
/third_party/ninja/src/
Dmsvc_helper-win32.cc83 DWORD read_len = 1; in Run() local
84 while (read_len) { in Run()
86 read_len = 0; in Run()
87 if (!::ReadFile(stdout_read, buf, sizeof(buf), &read_len, NULL) && in Run()
91 output->append(buf, read_len); in Run()
/third_party/node/test/parallel/
Dtest-tls-close-event-after-write.js15 let read_len = 0; variable
39 read_len += d.length;
40 if (read_len === buffer_size) {
/third_party/gstreamer/gstplugins_base/gst-libs/gst/rtp/
Dgstrtpbuffer.c1381 guint8 read_id, read_len; in _get_extension_onebyte_header() local
1387 read_len = (GST_READ_UINT8 (pdata + offset) & 0x0F) + 1; in _get_extension_onebyte_header()
1399 if (offset + read_len > len) in _get_extension_onebyte_header()
1408 *size = read_len; in _get_extension_onebyte_header()
1415 offset += read_len; in _get_extension_onebyte_header()
1524 guint8 read_id, read_len; in gst_rtp_buffer_get_extension_twobytes_header() local
1535 read_len = GST_READ_UINT8 (pdata + offset); in gst_rtp_buffer_get_extension_twobytes_header()
1539 if (offset + read_len > bytelen) in gst_rtp_buffer_get_extension_twobytes_header()
1548 *size = read_len; in gst_rtp_buffer_get_extension_twobytes_header()
1557 offset += read_len; in gst_rtp_buffer_get_extension_twobytes_header()
[all …]
Dgstrtpbasedepayload.c1184 guint8 read_id, read_len; in read_rtp_header_extensions() local
1194 read_len = (GST_READ_UINT8 (pdata + offset) & 0x0F) + 1; in read_rtp_header_extensions()
1212 read_len = GST_READ_UINT8 (pdata + offset); in read_rtp_header_extensions()
1216 "length %u", read_id, read_len); in read_rtp_header_extensions()
1219 if (offset + read_len > bytelen) { in read_rtp_header_extensions()
1237 read_len, output)) { in read_rtp_header_extensions()
1252 offset += read_len; in read_rtp_header_extensions()
/third_party/mbedtls/library/
Dentropy_poll.c162 size_t read_len; in mbedtls_platform_entropy_poll() local
181 ((void) read_len); in mbedtls_platform_entropy_poll()
199 read_len = fread(output, 1, len, file); in mbedtls_platform_entropy_poll()
200 if (read_len != len) { in mbedtls_platform_entropy_poll()
/third_party/ffmpeg/libavformat/
Dasync.c527 int read_len = 0;
539 read_len++;
545 return read_len;
605 int64_t read_len;
623 read_len = 0;
646 read_len += ret;
648 printf("read: %"PRId64"\n", read_len);
659 read_len = 0;
680 read_len += ret;
682 printf("read: %"PRId64"\n", read_len);
/third_party/python/Modules/_io/
Dwinconsoleio.c664 DWORD read_len = _copyfrombuf(self, buf, (DWORD)len); in readinto() local
665 if (read_len) { in readinto()
666 buf = &buf[read_len]; in readinto()
667 len -= read_len; in readinto()
670 if (len == read_len || wlen == 0) in readinto()
671 return read_len; in readinto()
679 return read_len; in readinto()
697 read_len += u8n; in readinto()
724 return read_len; in readinto()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify22.c238 size_t read_len; in do_test() local
245 read_len = SAFE_READ(0, fd_notify, event_buf, BUF_SIZE); in do_test()
250 check_event(event_buf, read_len, tcase); in do_test()
/third_party/gstreamer/gstplugins_bad/sys/wasapi/
Dgstwasapisrc.c782 guint got_frames, avail_frames, n_frames, want_frames, read_len; in gst_wasapi_src_read() local
850 read_len = n_frames * bpf; in gst_wasapi_src_read()
855 wanted, n_frames, read_len, avail_frames, avail_frames * bpf); in gst_wasapi_src_read()
857 memcpy (data, gst_adapter_map (self->adapter, read_len), read_len); in gst_wasapi_src_read()
858 gst_adapter_flush (self->adapter, read_len); in gst_wasapi_src_read()
859 wanted -= read_len; in gst_wasapi_src_read()
/third_party/libfuse/lib/
Dbuffer.c126 size_t read_len; in fuse_buf_fd_to_fd() local
137 read_len = res; in fuse_buf_fd_to_fd()
138 res = fuse_buf_write(dst, dst_off, &tmp, 0, read_len); in fuse_buf_fd_to_fd()
/third_party/openssl/crypto/http/
Dhttp_client.c1293 int read_len = 0; in OSSL_HTTP_proxy_connect() local
1370 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect()
1372 if (read_len < (int)HTTP_LINE1_MINLEN) in OSSL_HTTP_proxy_connect()
1396 while (read_len > 0 && ossl_isspace(mbuf[read_len - 1])) in OSSL_HTTP_proxy_connect()
1397 read_len--; in OSSL_HTTP_proxy_connect()
1398 mbuf[read_len] = '\0'; in OSSL_HTTP_proxy_connect()
1415 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect()
1416 } while (read_len > 2); in OSSL_HTTP_proxy_connect()
/third_party/node/deps/openssl/openssl/crypto/http/
Dhttp_client.c1293 int read_len = 0; in OSSL_HTTP_proxy_connect() local
1370 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect()
1372 if (read_len < (int)HTTP_LINE1_MINLEN) in OSSL_HTTP_proxy_connect()
1396 while (read_len > 0 && ossl_isspace(mbuf[read_len - 1])) in OSSL_HTTP_proxy_connect()
1397 read_len--; in OSSL_HTTP_proxy_connect()
1398 mbuf[read_len] = '\0'; in OSSL_HTTP_proxy_connect()
1415 read_len = BIO_gets(fbio, mbuf, BUF_SIZE); in OSSL_HTTP_proxy_connect()
1416 } while (read_len > 2); in OSSL_HTTP_proxy_connect()
/third_party/selinux/libsepol/src/
Dmodule.c352 uint32_t offset, nel, read_len; in read_helper() local
360 read_len = nel; in read_helper()
362 read_len = _read_helper_bufsize; in read_helper()
363 rc = next_entry(&buf[offset], file, read_len); in read_helper()
366 offset += read_len; in read_helper()
367 nel -= read_len; in read_helper()
/third_party/NuttX/drivers/usbdev/gadget/
Df_hid.h77 size_t read_len; member
Dusbd_hid.c261 ret = usbd_copy_to_user(buffer, buflen, (const void *)hid->read_buf, hid->read_len); in hid_read()
/third_party/node/deps/cares/src/lib/
Dares_process.c473 ares_ssize_t read_len; in read_udp_packets() local
517 read_len = -1; in read_udp_packets()
524 read_len = socket_recvfrom(channel, server->udp_socket, (void *)buf, in read_udp_packets()
528 if (read_len == 0) { in read_udp_packets()
533 } else if (read_len < 0) { in read_udp_packets()
548 process_answer(channel, buf, (int)read_len, i, 0, now); in read_udp_packets()
550 } while (read_len >= 0); in read_udp_packets()
/third_party/exfatprogs/exfat2img/
Dexfat2img.c745 size_t read_len = 0; in read_stream() local
748 while (read_len < len) { in read_stream()
749 ret = read(fd, buf, len - read_len); in read_stream()
758 read_len += (size_t)ret; in read_stream()
760 return read_len; in read_stream()
/third_party/libsnd/src/
Daiff.c837 { uint32_t read_len = pstr_len - (sizeof (ubuf.scbuf) - 1) ; in aiff_read_header() local
838 bytesread += psf_binheader_readf (psf, "bj", ubuf.scbuf, read_len, pstr_len - read_len) ; in aiff_read_header()
1027 unsigned read_len ; in aiff_read_comm_chunk() local
1033 read_len = comm_fmt->size - SIZEOF_AIFC_COMM + 1 ; in aiff_read_comm_chunk()
1034 psf_binheader_readf (psf, "b", ubuf.scbuf, read_len) ; in aiff_read_comm_chunk()
1035 ubuf.scbuf [read_len + 1] = 0 ; in aiff_read_comm_chunk()
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1write.function350 size_t read_len;
372 ret = mbedtls_asn1_get_len(&p, buf + GUARD_LEN + buf_len, &read_len);
382 TEST_ASSERT(read_len == (size_t) len);
/third_party/FreeBSD/sys/dev/usb/serial/
Dusb_serial.c1387 int read_len = -1; in tty_usb_read() local
1432 read_len = temp; in tty_usb_read()
1438 return (read_len); in tty_usb_read()

12