/third_party/protobuf/src/google/protobuf/testing/ |
D | zcgzip.cc | 64 int readlen; in main() local 76 readlen = read(STDIN_FILENO, outptr, outlen); in main() 77 if (readlen <= 0) { in main() 81 if (readlen < outlen) { in main() 82 out.BackUp(outlen - readlen); in main()
|
/third_party/libsnd/src/ |
D | mpeg_decode.c | 109 sf_count_t total, readlen ; in mpeg_dec_read_s() local 114 for (total = 0 ; total < len ; total += readlen) in mpeg_dec_read_s() 115 { readlen = mpeg_dec_decode (psf, ubuf.fbuf, SF_MIN (buflen, len - total)) ; in mpeg_dec_read_s() 116 if (readlen <= 0) in mpeg_dec_read_s() 119 convert (ubuf.fbuf, ptr + total, readlen, SF_TRUE) ; in mpeg_dec_read_s() 128 sf_count_t total, readlen ; in mpeg_dec_read_i() local 133 for (total = 0 ; total < len ; total += readlen) in mpeg_dec_read_i() 134 { readlen = mpeg_dec_decode (psf, ubuf.fbuf, SF_MIN (buflen, len - total)) ; in mpeg_dec_read_i() 135 if (readlen <= 0) in mpeg_dec_read_i() 138 convert (ubuf.fbuf, ptr + total, readlen, SF_TRUE) ; in mpeg_dec_read_i() [all …]
|
D | ogg_opus.c | 1154 sf_count_t readlen, i ; in ogg_opus_read_s() local 1163 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_s() 1164 if (readlen > 0) in ogg_opus_read_s() 1167 total += readlen ; in ogg_opus_read_s() 1180 oopus->loc += (readlen / psf->sf.channels) ; in ogg_opus_read_s() 1191 sf_count_t readlen, i ; in ogg_opus_read_i() local 1200 readlen = SF_MIN (len - total, (sf_count_t) (oopus->len - oopus->loc) * psf->sf.channels) ; in ogg_opus_read_i() 1201 if (readlen > 0) in ogg_opus_read_i() 1204 total += readlen ; in ogg_opus_read_i() 1217 oopus->loc += (readlen / psf->sf.channels) ; in ogg_opus_read_i() [all …]
|
D | flac.c | 983 unsigned readlen ; in flac_read_flac2s() local 989 readlen = (len - total > READ_LOOP_MAX_LEN) ? READ_LOOP_MAX_LEN : (unsigned) (len - total) ; in flac_read_flac2s() 990 current = flac_read_loop (psf, readlen) ; in flac_read_flac2s() 1003 unsigned readlen ; in flac_read_flac2i() local 1009 readlen = (len - total > READ_LOOP_MAX_LEN) ? READ_LOOP_MAX_LEN : (unsigned) (len - total) ; in flac_read_flac2i() 1010 current = flac_read_loop (psf, readlen) ; in flac_read_flac2i() 1023 unsigned readlen ; in flac_read_flac2f() local 1029 readlen = (len - total > READ_LOOP_MAX_LEN) ? READ_LOOP_MAX_LEN : (unsigned) (len - total) ; in flac_read_flac2f() 1030 current = flac_read_loop (psf, readlen) ; in flac_read_flac2f() 1043 unsigned readlen ; in flac_read_flac2d() local [all …]
|
D | common.c | 1547 { sf_count_t count, readlen, total = 0 ; in psf_decode_frame_count() local 1556 readlen = ARRAY_LEN (ubuf.ibuf) / psf->sf.channels ; in psf_decode_frame_count() 1557 readlen *= psf->sf.channels ; in psf_decode_frame_count() 1559 while ((count = psf->read_int (psf, ubuf.ibuf, readlen)) > 0) in psf_decode_frame_count()
|
/third_party/libsnd/programs/ |
D | sndfile-salvage.c | 280 sf_count_t readlen, count ; in copy_data() local 286 while (NOT (done) && (readlen = read (fd, buffer, bufferlen)) >= 0) in copy_data() 287 { if (readlen < bufferlen) in copy_data() 288 { readlen -= readlen % readsize ; in copy_data() 292 if ((count = sf_write_raw (sndfile, buffer, readlen)) != readlen) in copy_data()
|
/third_party/musl/src/stdio/ |
D | fopencookie.c | 24 size_t remain = len, readlen = 0; in cookieread() local 33 readlen += ret; in cookieread() 37 if (!f->buf_size || remain > !!f->buf_size) return readlen; in cookieread() 44 buf[readlen++] = *f->rpos++; in cookieread() 46 return readlen; in cookieread() 51 return readlen; in cookieread()
|
/third_party/toybox/toys/posix/ |
D | iconv.c | 39 int readlen = 1; in do_iconv() local 44 if (readlen && 0>(readlen = read(fd, in+inlen, 2048-inlen))) { in do_iconv() 48 inlen += readlen; in do_iconv()
|
/third_party/node/deps/nghttp2/lib/ |
D | nghttp2_session.c | 5685 size_t readlen; in inbound_frame_buf_read() local 5687 readlen = in inbound_frame_buf_read() 5690 iframe->sbuf.last = nghttp2_cpymem(iframe->sbuf.last, in, readlen); in inbound_frame_buf_read() 5692 return readlen; in inbound_frame_buf_read() 5792 size_t readlen) { in inbound_frame_effective_readlen() argument 5799 if (readlen < padlen) { in inbound_frame_effective_readlen() 5802 return (ssize_t)(readlen - padlen); in inbound_frame_effective_readlen() 5804 return (ssize_t)(readlen); in inbound_frame_effective_readlen() 5813 size_t readlen; in nghttp2_session_mem_recv() local 5850 readlen = nghttp2_min(inlen, iframe->payloadleft); in nghttp2_session_mem_recv() [all …]
|
D | nghttp2_hd.c | 1690 ssize_t readlen; in hd_inflate_read_huff() local 1696 readlen = nghttp2_hd_huff_decode(&inflater->huff_decode_ctx, buf, in, in hd_inflate_read_huff() 1699 if (readlen < 0) { in hd_inflate_read_huff() 1701 return readlen; in hd_inflate_read_huff() 1708 inflater->left -= (size_t)readlen; in hd_inflate_read_huff() 1709 return readlen; in hd_inflate_read_huff()
|
/third_party/nghttp2/lib/ |
D | nghttp2_session.c | 5770 size_t readlen; in inbound_frame_buf_read() local 5772 readlen = in inbound_frame_buf_read() 5775 iframe->sbuf.last = nghttp2_cpymem(iframe->sbuf.last, in, readlen); in inbound_frame_buf_read() 5777 return readlen; in inbound_frame_buf_read() 5877 size_t readlen) { in inbound_frame_effective_readlen() argument 5884 if (readlen < padlen) { in inbound_frame_effective_readlen() 5887 return (ssize_t)(readlen - padlen); in inbound_frame_effective_readlen() 5889 return (ssize_t)(readlen); in inbound_frame_effective_readlen() 5898 size_t readlen; in nghttp2_session_mem_recv() local 5935 readlen = nghttp2_min(inlen, iframe->payloadleft); in nghttp2_session_mem_recv() [all …]
|
D | nghttp2_hd.c | 1690 ssize_t readlen; in hd_inflate_read_huff() local 1696 readlen = nghttp2_hd_huff_decode(&inflater->huff_decode_ctx, buf, in, in hd_inflate_read_huff() 1699 if (readlen < 0) { in hd_inflate_read_huff() 1701 return readlen; in hd_inflate_read_huff() 1708 inflater->left -= (size_t)readlen; in hd_inflate_read_huff() 1709 return readlen; in hd_inflate_read_huff()
|
/third_party/rust/crates/aho-corasick/src/ |
D | buffer.rs | 92 let readlen = rdr.read(self.free_buffer())?; in fill() localVariable 93 if readlen == 0 { in fill() 97 self.end += readlen; in fill()
|
/third_party/python/Modules/_io/ |
D | winconsoleio.c | 530 read_console_w(HANDLE handle, DWORD maxlen, DWORD *readlen) { in read_console_w() argument 537 *readlen = 0; in read_console_w() 571 *readlen += n; in read_console_w() 578 if (buf[*readlen - 1] == '\n') in read_console_w() 584 GetStringTypeW(CT_CTYPE3, &buf[*readlen - 1], 1, &char_type) && in read_console_w() 613 if (*readlen > 0 && buf[0] == L'\x1a') { in read_console_w() 619 *readlen = 0; in read_console_w()
|
/third_party/nghttp2/examples/ |
D | libevent-client.c | 456 ssize_t readlen; in readcb() local 461 readlen = nghttp2_session_mem_recv(session_data->session, data, datalen); in readcb() 462 if (readlen < 0) { in readcb() 463 warnx("Fatal error: %s", nghttp2_strerror((int)readlen)); in readcb() 467 if (evbuffer_drain(input, (size_t)readlen) != 0) { in readcb()
|
D | libevent-server.c | 312 ssize_t readlen; in session_recv() local 317 readlen = nghttp2_session_mem_recv(session_data->session, data, datalen); in session_recv() 318 if (readlen < 0) { in session_recv() 319 warnx("Fatal error: %s", nghttp2_strerror((int)readlen)); in session_recv() 322 if (evbuffer_drain(input, (size_t)readlen) != 0) { in session_recv()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | wpa_ctrl.c | 765 DWORD readlen = *reply_len; in wpa_ctrl_request() local 770 if (!ReadFile(ctrl->pipe, reply, *reply_len, &readlen, NULL)) in wpa_ctrl_request() 772 *reply_len = readlen; in wpa_ctrl_request()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | wpa_ctrl.c | 780 DWORD readlen = *reply_len; in wpa_ctrl_request() local 785 if (!ReadFile(ctrl->pipe, reply, *reply_len, &readlen, NULL)) in wpa_ctrl_request() 787 *reply_len = readlen; in wpa_ctrl_request()
|
/third_party/nghttp2/doc/sources/ |
D | tutorial-client.rst | 307 ssize_t readlen; 312 readlen = nghttp2_session_mem_recv(session_data->session, data, datalen); 313 if (readlen < 0) { 314 warnx("Fatal error: %s", nghttp2_strerror((int)readlen)); 318 if (evbuffer_drain(input, (size_t)readlen) != 0) {
|
D | tutorial-server.rst | 326 ssize_t readlen; 331 readlen = nghttp2_session_mem_recv(session_data->session, data, datalen); 332 if (readlen < 0) { 333 warnx("Fatal error: %s", nghttp2_strerror((int)readlen)); 336 if (evbuffer_drain(input, (size_t)readlen) != 0) {
|
/third_party/python/Modules/ |
D | socketmodule.c | 3549 Py_ssize_t buflen, readlen, recvlen = 0; in sock_recv_into() local 3578 readlen = sock_recv_guts(s, buf, recvlen, flags); in sock_recv_into() 3579 if (readlen < 0) { in sock_recv_into() 3588 return PyLong_FromSsize_t(readlen); in sock_recv_into() 3736 Py_ssize_t readlen, buflen, recvlen = 0; in sock_recvfrom_into() local 3763 readlen = sock_recvfrom_guts(s, buf, recvlen, flags, &addr); in sock_recvfrom_into() 3764 if (readlen < 0) { in sock_recvfrom_into() 3774 return Py_BuildValue("nN", readlen, addr); in sock_recvfrom_into()
|