Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 25 of 38) sorted by relevance

12

/external/libunwind/src/
Dos-linux.h218 ssize_t bytes_left = mi->buf_end - mi->buf; in maps_next() local
221 for (i = 0; i < bytes_left; ++i) in maps_next()
234 if (bytes_left > 0) in maps_next()
235 memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left); in maps_next()
238 nread = read (mi->fd, mi->buf + bytes_left, in maps_next()
239 mi->buf_size - bytes_left); in maps_next()
242 else if ((size_t) (nread + bytes_left) < mi->buf_size) in maps_next()
247 memmove (mi->buf_end - nread - bytes_left, mi->buf, in maps_next()
248 nread + bytes_left); in maps_next()
249 mi->buf = mi->buf_end - nread - bytes_left; in maps_next()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h51 unsigned bytes_left; member
100 vlc->bytes_left -= len; in vl_vlc_next_input()
127 unsigned bytes_left = vlc->end - vlc->data; in vl_vlc_fillbits() local
130 if (bytes_left == 0) { in vl_vlc_fillbits()
139 } else if (bytes_left >= 4) { in vl_vlc_fillbits()
182 vlc->bytes_left = 0; in vl_vlc_init()
185 vlc->bytes_left += sizes[i]; in vl_vlc_init()
207 signed bytes_left = vlc->end - vlc->data; in vl_vlc_bits_left() local
208 bytes_left += vlc->bytes_left; in vl_vlc_bits_left()
209 return bytes_left * 8 + vl_vlc_valid_bits(vlc); in vl_vlc_bits_left()
/external/webrtc/webrtc/base/
Dsslidentity.cc194 size_t bytes_left = length; in ASN1TimeToSec() local
215 if (bytes_left < 11) in ASN1TimeToSec()
218 year = ASN1ReadInt(&s, &bytes_left, 4); in ASN1TimeToSec()
224 if (bytes_left < 9) in ASN1TimeToSec()
227 year = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec()
237 tm.tm_mon = ASN1ReadInt(&s, &bytes_left, 2) - 1; in ASN1TimeToSec()
238 tm.tm_mday = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec()
239 tm.tm_hour = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec()
240 tm.tm_min = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec()
241 tm.tm_sec = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec()
[all …]
/external/webrtc/webrtc/modules/audio_device/
Dfine_audio_buffer.cc83 int bytes_left = in GetPlayoutData() local
86 size_t number_of_requests = 1 + (bytes_left - 1) / (bytes_per_10_ms_); in GetPlayoutData()
96 RTC_CHECK_GE(bytes_left, 0); in GetPlayoutData()
97 bytes_left -= static_cast<int>(bytes_per_10_ms_); in GetPlayoutData()
99 RTC_CHECK_LE(bytes_left, 0); in GetPlayoutData()
109 RTC_CHECK_EQ(static_cast<size_t>(-bytes_left), playout_cached_bytes_); in GetPlayoutData()
/external/compiler-rt/test/dfsan/
Dwrite_callback.c38 int bytes_left = strlen(string); in write_string_to_stdout() local
39 while (bytes_left > 0) { in write_string_to_stdout()
40 int res = write(fileno(stdout), cur, bytes_left); in write_string_to_stdout()
43 bytes_left -= res; in write_string_to_stdout()
/external/nanopb-c/
Dpb_decode.c113 if (stream->bytes_left < count) in pb_read()
124 stream->bytes_left -= count; in pb_read()
132 if (stream->bytes_left == 0) in pb_readbyte()
143 stream->bytes_left--; in pb_readbyte()
157 stream.bytes_left = bufsize; in pb_istream_from_buffer()
255 if (stream->bytes_left == 0) in pb_decode_tag()
324 if (substream->bytes_left < size) in pb_make_string_substream()
327 substream->bytes_left = size; in pb_make_string_substream()
328 stream->bytes_left -= size; in pb_make_string_substream()
437 while (substream.bytes_left > 0 && *size < iter->pos->array_size) in decode_static_field()
[all …]
Dpb_decode.h41 size_t bytes_left; member
/external/libvpx/libvpx/vp8/decoder/
Ddboolhuff.c45 size_t bytes_left = br->user_buffer_end - bufptr; in vp8dx_bool_decoder_fill() local
46 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill()
52 size_t n = VPXMIN(sizeof(decrypted), bytes_left); in vp8dx_bool_decoder_fill()
/external/e2fsprogs/lib/ext2fs/
Dinode.c45 int bytes_left; member
142 scan->bytes_left = 0; in ext2fs_open_inode_scan()
240 scan->bytes_left = 0; in get_next_blockgroup()
348 if (scan->bytes_left) in get_next_blocks()
375 scan->bytes_left = num_blocks * scan->fs->blocksize; in get_next_blocks()
394 if (scan->bytes_left == 0)
397 for (i=0; i < scan->bytes_left; i++)
454 if (scan->bytes_left < scan->inode_size) { in ext2fs_get_next_inode_full()
455 memcpy(scan->temp_buffer, scan->ptr, scan->bytes_left); in ext2fs_get_next_inode_full()
456 extra_bytes = scan->bytes_left; in ext2fs_get_next_inode_full()
[all …]
/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c52 TEST(stream.bytes_left == sizeof(buffer1) - 6) in main()
53 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main()
55 TEST(stream.bytes_left == 0) in main()
93 TEST((s = S("\x00""foobar"), pb_skip_varint(&s) && s.bytes_left == 6)) in main()
94 TEST((s = S("\xAC\x02""foobar"), pb_skip_varint(&s) && s.bytes_left == 6)) in main()
96 pb_skip_varint(&s) && s.bytes_left == 6)) in main()
103 TEST((s = S("\x00""foobar"), pb_skip_string(&s) && s.bytes_left == 6)) in main()
104 TEST((s = S("\x04""testfoobar"), pb_skip_string(&s) && s.bytes_left == 6)) in main()
/external/libvpx/libvpx/vpx_dsp/
Dbitreader.c47 const size_t bytes_left = buffer_end - buffer; in vpx_reader_fill() local
48 const size_t bits_left = bytes_left * CHAR_BIT; in vpx_reader_fill()
52 size_t n = VPXMIN(sizeof(r->clear_buffer), bytes_left); in vpx_reader_fill()
/external/fio/exp/
Dexpression-parser.y193 int bytes_left = strlen(lexer_input_buffer) - lexer_read_offset; in lexer_input() local
195 if (bytes_requested > bytes_left ) in lexer_input()
196 bytes_requested = bytes_left; in lexer_input()
/external/libjpeg-turbo/
Djmemmgr.c104 size_t bytes_left; /* bytes still available in this pool */ member
112 size_t bytes_left; /* bytes still available in this pool */ member
212 (long) shdr_ptr->bytes_left); in print_mem_stats()
290 if (hdr_ptr->bytes_left >= sizeofobject) in alloc_small()
320 hdr_ptr->bytes_left = sizeofobject + slop; in alloc_small()
334 hdr_ptr->bytes_left -= sizeofobject; in alloc_small()
389 hdr_ptr->bytes_left = 0; in alloc_large()
1005 lhdr_ptr->bytes_left + in free_pool()
1019 shdr_ptr->bytes_left + in free_pool()
/external/opencv3/3rdparty/libjpeg/
Djmemmgr.c96 size_t bytes_left; /* bytes still available in this pool */ member
107 size_t bytes_left; /* bytes still available in this pool */ member
210 (long) shdr_ptr->hdr.bytes_left); in print_mem_stats()
281 if (hdr_ptr->hdr.bytes_left >= sizeofobject) in alloc_small()
311 hdr_ptr->hdr.bytes_left = sizeofobject + slop; in alloc_small()
322 hdr_ptr->hdr.bytes_left -= sizeofobject; in alloc_small()
375 hdr_ptr->hdr.bytes_left = 0; in alloc_large()
974 lhdr_ptr->hdr.bytes_left + in free_pool()
988 shdr_ptr->hdr.bytes_left + in free_pool()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jmemmgr.c97 size_t bytes_left; /* bytes still available in this pool */ member
108 size_t bytes_left; /* bytes still available in this pool */ member
211 (long) shdr_ptr->hdr.bytes_left); in print_mem_stats()
282 if (hdr_ptr->hdr.bytes_left >= sizeofobject) in alloc_small()
312 hdr_ptr->hdr.bytes_left = sizeofobject + slop; in alloc_small()
323 hdr_ptr->hdr.bytes_left -= sizeofobject; in alloc_small()
376 hdr_ptr->hdr.bytes_left = 0; in alloc_large()
975 lhdr_ptr->hdr.bytes_left + in free_pool()
989 shdr_ptr->hdr.bytes_left + in free_pool()
/external/nanopb-c/tests/callbacks/
Ddecode_callbacks.c15 if (stream->bytes_left > sizeof(buffer) - 1) in print_string()
18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
/external/nanopb-c/docs/
Dconcepts.rst58 #) *bytes_written* and *bytes_left* are updated by pb_write and pb_read.
59 #) Your callback may be used with substreams. In this case *bytes_left*, *bytes_written* and *max_s…
104 …h of the message in advance. After getting EOF error when reading, set bytes_left to 0 and return …
112 size_t bytes_left;
137 stream->bytes_left = 0;
216 …g* and *bytes*, the length value has already been parsed, and is available at *stream->bytes_left*.
226 while (stream->bytes_left)
314 5) Exceeding the max_size or bytes_left of a stream.
/external/netperf/src/
Dnetlib.c1533 int bytes_left; in allocate_buffer_ring() local
1597 bytes_left = buffer_size; in allocate_buffer_ring()
1598 while (bytes_left) { in allocate_buffer_ring()
1601 bytes_left, in allocate_buffer_ring()
1607 bytes_left -= bytes_read; in allocate_buffer_ring()
1700 int bytes_left; in allocate_exs_buffer_ring() local
1794 bytes_left = buffer_size; in allocate_exs_buffer_ring()
1795 while (bytes_left) { in allocate_exs_buffer_ring()
1798 bytes_left, in allocate_exs_buffer_ring()
1803 bytes_left -= bytes_read; in allocate_exs_buffer_ring()
[all …]
/external/autotest/client/cros/
Dnetwork.py248 bytes_left = bytes_to_fetch - bytes_fetched
249 bytes_to_read = min(bytes_left, _MAX_FETCH_READ_BYTES)
/external/nanopb-c/examples/network_server/
Dcommon.c25 stream->bytes_left = 0; /* EOF */ in read_callback()
/external/google-breakpad/src/common/dwarf/
Ddwarf2reader.cc1357 size_t bytes_left = entry_->end - cursor_; in ParseOperands() local
1361 if (len > bytes_left) return ReportIncomplete(); in ParseOperands()
1367 if (len > bytes_left) return ReportIncomplete(); in ParseOperands()
1373 if (len > bytes_left) return ReportIncomplete(); in ParseOperands()
1381 if (len > bytes_left) return ReportIncomplete(); in ParseOperands()
1386 if (1 > bytes_left) return ReportIncomplete(); in ParseOperands()
1391 if (2 > bytes_left) return ReportIncomplete(); in ParseOperands()
1397 if (4 > bytes_left) return ReportIncomplete(); in ParseOperands()
1403 if (8 > bytes_left) return ReportIncomplete(); in ParseOperands()
1410 if (len > bytes_left || expression_length > bytes_left - len) in ParseOperands()
/external/nanopb-c/tests/basic_stream/
Ddecode_stream.c66 stream->bytes_left = 0; in callback()
/external/blktrace/
Dblktrace.c806 unsigned int bytes_left = len; in __net_recv_data() local
808 while (bytes_left && !done) { in __net_recv_data()
809 int ret = recv(fd, buf, bytes_left, MSG_WAITALL); in __net_recv_data()
822 bytes_left -= ret; in __net_recv_data()
826 return len - bytes_left; in __net_recv_data()
840 unsigned int bytes_left = buf_len; in net_send_data() local
842 while (bytes_left) { in net_send_data()
843 ret = send(fd, buf, bytes_left, 0); in net_send_data()
850 bytes_left -= ret; in net_send_data()
853 return buf_len - bytes_left; in net_send_data()
/external/blktrace/btt/
Dtrace_issue.c48 d_iop->bytes_left -= q_iop->t.bytes; in handle_issue()
/external/boringssl/src/crypto/bio/
Dbio_test.cc259 size_t bytes_left = BIO_pending(bio2); in TestZeroCopyBioPairs() local
261 bio2, bio2_application_recv_buffer + total_read, bytes_left); in TestZeroCopyBioPairs()

12