Home
last modified time | relevance | path

Searched refs:consumed (Results 1 – 25 of 476) sorted by relevance

12345678910>>...20

/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-draw.c34 unsigned consumed; member
101 if (user_data->consumed + 2 * ITOA_BUF_SIZE + 4 > user_data->size) return; in move_to()
102 user_data->str[user_data->consumed++] = 'M'; in move_to()
103 user_data->consumed += _hb_itoa (to_x, user_data->str + user_data->consumed); in move_to()
104 user_data->str[user_data->consumed++] = ','; in move_to()
105 user_data->consumed += _hb_itoa (to_y, user_data->str + user_data->consumed); in move_to()
111 if (user_data->consumed + 2 * ITOA_BUF_SIZE + 4 > user_data->size) return; in line_to()
112 user_data->str[user_data->consumed++] = 'L'; in line_to()
113 user_data->consumed += _hb_itoa (to_x, user_data->str + user_data->consumed); in line_to()
114 user_data->str[user_data->consumed++] = ','; in line_to()
[all …]
/third_party/python/Modules/
D_codecsmodule.c267 Py_ssize_t consumed = data->len; in _codecs_utf_7_decode_impl() local
270 final ? NULL : &consumed); in _codecs_utf_7_decode_impl()
271 return codec_tuple(decoded, consumed); in _codecs_utf_7_decode_impl()
287 Py_ssize_t consumed = data->len; in _codecs_utf_8_decode_impl() local
290 final ? NULL : &consumed); in _codecs_utf_8_decode_impl()
291 return codec_tuple(decoded, consumed); in _codecs_utf_8_decode_impl()
309 Py_ssize_t consumed = data->len; in _codecs_utf_16_decode_impl() local
312 final ? NULL : &consumed); in _codecs_utf_16_decode_impl()
313 return codec_tuple(decoded, consumed); in _codecs_utf_16_decode_impl()
331 Py_ssize_t consumed = data->len; in _codecs_utf_16_le_decode_impl() local
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_reader_test.cc64 size_t consumed = chunk.length(); in TEST() local
65 EXPECT_THAT(reader.consumed(), Eq(consumed)); in TEST()
67 while (consumed < data.length()) { in TEST()
69 EXPECT_THAT(chunk, Eq(data.substr(consumed, chunk.length()))); in TEST()
71 consumed += chunk.length(); in TEST()
72 EXPECT_THAT(reader.consumed(), Eq(consumed)); in TEST()
75 EXPECT_THAT(consumed, Eq(data.length())); in TEST()
76 EXPECT_THAT(reader.consumed(), Eq(data.length())); in TEST()
96 size_t consumed = chunk.length(); in TEST() local
99 ASSERT_THAT(chunk, Eq(data.substr(consumed + skip1, chunk.length()))); in TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dav1parser.c114 guint32 consumed = 0; in GST_START_TEST() local
121 &obu, &consumed); in GST_START_TEST()
123 data_ptr += consumed; in GST_START_TEST()
124 data_sz -= consumed; in GST_START_TEST()
136 &obu, &consumed); in GST_START_TEST()
138 data_ptr += consumed; in GST_START_TEST()
139 data_sz -= consumed; in GST_START_TEST()
188 &obu, &consumed); in GST_START_TEST()
190 data_ptr += consumed; in GST_START_TEST()
191 data_sz -= consumed; in GST_START_TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcord_ring_reader_test.cc64 EXPECT_DEATH_IF_SUPPORTED(reader.consumed(), ".*"); in TEST()
83 EXPECT_THAT(reader.consumed(), Eq(flats[0].length())); in TEST()
84 EXPECT_THAT(reader.remaining(), Eq(ring->length - reader.consumed())); in TEST()
100 size_t consumed = reader.consumed(); in TEST() local
104 consumed += flats[i].length(); in TEST()
110 ASSERT_THAT(reader.consumed(), Eq(consumed)); in TEST()
128 size_t consumed = 0; in TEST() local
132 size_t offset = consumed; in TEST()
133 consumed += flats[i].length(); in TEST()
140 ASSERT_THAT(reader.consumed(), Eq(consumed)); in TEST()
[all …]
/third_party/ltp/testcases/kernel/uevents/
Duevent.h47 int consumed = 0; in print_uevent() local
51 while (consumed < len) { in print_uevent()
54 consumed += l; in print_uevent()
77 int consumed = 0; in uevent_match() local
85 consumed += l; in uevent_match()
88 while (consumed < len) { in uevent_match()
98 consumed += l; in uevent_match()
/third_party/ffmpeg/libavcodec/
Dsbcdec.c65 unsigned int consumed; in sbc_unpack_frame() local
113 consumed = 32; in sbc_unpack_frame()
119 if (len * 8 < consumed + frame->subbands) in sbc_unpack_frame()
130 consumed += frame->subbands; in sbc_unpack_frame()
134 if (len * 8 < consumed + (4 * frame->subbands * frame->channels)) in sbc_unpack_frame()
141 (data[consumed >> 3] >> (4 - (consumed & 0x7))) & 0x0F; in sbc_unpack_frame()
145 consumed += 4; in sbc_unpack_frame()
175 if (consumed > len * 8) in sbc_unpack_frame()
178 if ((data[consumed >> 3] >> (7 - (consumed & 0x7))) & 0x01) in sbc_unpack_frame()
181 consumed++; in sbc_unpack_frame()
[all …]
Dav1_parse.c59 int ret, consumed; in ff_av1_packet_split() local
83 consumed = ff_av1_extract_obu(obu, bc.buffer, bytestream2_get_bytes_left(&bc), logctx); in ff_av1_packet_split()
84 if (consumed < 0) in ff_av1_packet_split()
85 return consumed; in ff_av1_packet_split()
87 bytestream2_skip(&bc, consumed); in ff_av1_packet_split()
Dopus_celt.c122 int consumed, bits = f->transient ? 2 : 4; in celt_decode_tf_changes() local
124 consumed = opus_rc_tell(rc); in celt_decode_tf_changes()
125 tf_select_bit = (f->size != 0 && consumed+bits+1 <= f->framebits); in celt_decode_tf_changes()
128 if (consumed+bits+tf_select_bit <= f->framebits) { in celt_decode_tf_changes()
130 consumed = opus_rc_tell(rc); in celt_decode_tf_changes()
233 static int parse_postfilter(CeltFrame *f, OpusRangeCoder *rc, int consumed) in parse_postfilter() argument
240 if (f->start_band == 0 && consumed + 16 <= f->framebits) { in parse_postfilter()
262 consumed = opus_rc_tell(rc); in parse_postfilter()
265 return consumed; in parse_postfilter()
325 int consumed; // bits of entropy consumed thus far for this frame in ff_celt_decode_frame() local
[all …]
Dtak_parser.c45 int consumed = 0; in tak_parse() local
70 consumed += tmp_buf_size; in tak_parse()
105 if (consumed && !buf_size && next == END_NOT_FOUND || in tak_parse()
111 next += consumed; in tak_parse()
122 return buf_size + consumed; in tak_parse()
/third_party/gstreamer/gstplugins_bad/ext/resindvd/
Dgstmpegdesc.c67 guint consumed, total, n_desc; in gst_mpeg_descriptor_parse() local
77 consumed = gst_mpeg_descriptor_parse_1 (current, size); in gst_mpeg_descriptor_parse()
79 if (consumed > 0) { in gst_mpeg_descriptor_parse()
80 current += consumed; in gst_mpeg_descriptor_parse()
81 total += consumed; in gst_mpeg_descriptor_parse()
82 size -= consumed; in gst_mpeg_descriptor_parse()
86 while (consumed > 0); in gst_mpeg_descriptor_parse()
/third_party/node/deps/v8/src/objects/
Dstring-comparator.cc24 int consumed, const SharedStringAccessGuardIfNeeded& access_guard) { in Advance() argument
25 DCHECK(consumed <= length_); in Advance()
27 if (length_ != consumed) { in Advance()
29 buffer8_ += consumed; in Advance()
31 buffer16_ += consumed; in Advance()
33 length_ -= consumed; in Advance()
/third_party/gstreamer/gstplugins_bad/ext/ttml/
Dgstttmlparse.c277 gsize * consumed, GError ** err) in gst_convert_to_utf8() argument
281 *consumed = 0; in gst_convert_to_utf8()
285 consumed, NULL, err); in gst_convert_to_utf8()
324 gsize * consumed) in convert_encoding() argument
330 *consumed = 0; in convert_encoding()
335 gst_convert_to_utf8 (str, len, self->detected_encoding, consumed, &err); in convert_encoding()
351 *consumed = len; in convert_encoding()
368 ret = gst_convert_to_utf8 (str, len, encoding, consumed, &err); in convert_encoding()
376 ret = gst_convert_to_utf8 (str, len, "ISO-8859-15", consumed, NULL); in convert_encoding()
402 gsize consumed; in feed_textbuf() local
[all …]
/third_party/python/Lib/asyncio/
Dexceptions.py53 def __init__(self, message, consumed): argument
55 self.consumed = consumed
58 return type(self), (self.args[0], self.consumed)
/third_party/python/Lib/encodings/
Dutf_8_sig.py23 (output, consumed) = codecs.utf_8_decode(input, errors, True)
24 return (output, consumed+prefix)
66 (output, consumed) = \
68 return (output, consumed+3)
113 (output, consumed) = codecs.utf_8_decode(input[3:],errors)
114 return (output, consumed+3)
Dutf_16.py60 (output, consumed, byteorder) = \
66 elif consumed >= 2:
68 return (output, consumed)
134 (object, consumed, byteorder) = \
140 elif consumed>=2:
142 return (object, consumed)
Dutf_32.py55 (output, consumed, byteorder) = \
61 elif consumed >= 4:
63 return (output, consumed)
129 (object, consumed, byteorder) = \
135 elif consumed>=4:
137 return (object, consumed)
/third_party/openssl/doc/man3/
DSSL_set_bio.pod49 previously set values then one reference is consumed for the rbio and one
50 reference is consumed for the wbio.
55 the same as the previously set value then one reference is consumed.
60 same as the previously set value, then no additional references are consumed.
66 previously set value then one reference is consumed for the B<wbio> and no
67 references are consumed for the B<rbio>.
73 were the same as each other then one reference is consumed for the B<rbio>
74 and no references are consumed for the B<wbio>.
81 to each other, then one reference is consumed for the B<rbio> and one
82 reference is consumed for the B<wbio>.
/third_party/alsa-utils/axfer/
Dcontainer.c47 size_t consumed = 0; in container_recursive_read() local
49 while (consumed < byte_count && !cntr->interrupted) { in container_recursive_read()
50 result = read(cntr->fd, dst + consumed, byte_count - consumed); in container_recursive_read()
66 consumed += result; in container_recursive_read()
77 size_t consumed = 0; in container_recursive_write() local
79 while (consumed < byte_count && !cntr->interrupted) { in container_recursive_write()
80 result = write(cntr->fd, src + consumed, byte_count - consumed); in container_recursive_write()
91 consumed += result; in container_recursive_write()
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgstav1parse.c1457 guint32 consumed; in gst_av1_parse_handle_obu_to_obu() local
1466 consumed = 0; in gst_av1_parse_handle_obu_to_obu()
1469 map_info.size, &obu, &consumed); in gst_av1_parse_handle_obu_to_obu()
1473 g_assert (consumed <= map_info.size); in gst_av1_parse_handle_obu_to_obu()
1477 if (consumed) { in gst_av1_parse_handle_obu_to_obu()
1478 *skipsize = consumed; in gst_av1_parse_handle_obu_to_obu()
1491 if (consumed) { in gst_av1_parse_handle_obu_to_obu()
1492 *skipsize = consumed; in gst_av1_parse_handle_obu_to_obu()
1503 GST_DEBUG_OBJECT (parse, "Drop %d data", consumed); in gst_av1_parse_handle_obu_to_obu()
1504 *skipsize = consumed; in gst_av1_parse_handle_obu_to_obu()
[all …]
/third_party/curl/tests/libtest/
Dlib1591.c35 static size_t consumed = 0; variable
41 if(consumed == strlen(data)) { in read_callback()
45 if(amount > strlen(data)-consumed) { in read_callback()
49 consumed += amount; in read_callback()
/third_party/gstreamer/gstplugins_bad/gst/midi/
Dmidiparse.c540 guint size, consumed; in handle_meta_event() local
553 consumed = parse_varlen (midiparse, data + 1, size - 1, &length); in handle_meta_event()
554 if (consumed == 0) in handle_meta_event()
557 data += consumed + 1; in handle_meta_event()
558 size -= consumed + 1; in handle_meta_event()
625 track->offset += consumed + length + 1; in handle_meta_event()
643 guint size, consumed; in handle_sysex_event() local
651 consumed = parse_varlen (midiparse, data, size, &length); in handle_sysex_event()
652 if (consumed == 0) in handle_sysex_event()
655 data += consumed; in handle_sysex_event()
[all …]
/third_party/ffmpeg/libavformat/
Dwtvdec.c702 int consumed = parse_videoinfoheader2(s, st); in parse_media_type() local
703 avio_skip(pb, FFMAX(size - consumed, 0)); in parse_media_type()
705 uint64_t consumed = parse_videoinfoheader2(s, st); in parse_media_type() local
707 avio_skip(pb, FFMAX(size - consumed, 0)); in parse_media_type()
795 int len, sid, consumed; in parse_chunks() local
810 consumed = 32; in parse_chunks()
822 if (size < 0 || size > INT_MAX - 92 - consumed) in parse_chunks()
825 consumed += 92 + size; in parse_chunks()
838 if (size < 0 || size > INT_MAX - 76 - consumed) in parse_chunks()
841 consumed += 76 + size; in parse_chunks()
[all …]
/third_party/gstreamer/gstplugins_good/gst/isomp4/
Dgstisoff.c64 const guint8 * buffer, gint length, guint * consumed) in gst_isoff_qt_sidx_parser_add_data() argument
181 *consumed = gst_byte_reader_get_pos (&reader); in gst_isoff_qt_sidx_parser_add_data()
187 guint * consumed) in gst_isoff_qt_sidx_parser_add_buffer() argument
193 *consumed = 0; in gst_isoff_qt_sidx_parser_add_buffer()
199 consumed); in gst_isoff_qt_sidx_parser_add_buffer()
/third_party/openssl/crypto/
Dasn1_dsa.c236 size_t consumed; in ossl_decode_der_dsa_sig() local
249 consumed = PACKET_data(&pkt) - *ppin; in ossl_decode_der_dsa_sig()
250 *ppin += consumed; in ossl_decode_der_dsa_sig()
251 return consumed; in ossl_decode_der_dsa_sig()

12345678910>>...20