Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/third_party/node/src/
Dnode_crypto_clienthello.cc28 void ClientHelloParser::Parse(const uint8_t* data, size_t avail) { in Parse() argument
31 if (!ParseRecordHeader(data, avail)) in Parse()
35 ParseHeader(data, avail); in Parse()
48 bool ClientHelloParser::ParseRecordHeader(const uint8_t* data, size_t avail) { in ParseRecordHeader() argument
50 if (avail < 5) in ParseRecordHeader()
76 void ClientHelloParser::ParseHeader(const uint8_t* data, size_t avail) { in ParseHeader() argument
80 if (body_offset_ + frame_len_ > avail) in ParseHeader()
99 if (!ParseTLSClientHello(data, avail)) in ParseHeader()
109 session_id_ + session_size_ > data + avail) { in ParseHeader()
165 bool ClientHelloParser::ParseTLSClientHello(const uint8_t* data, size_t avail) { in ParseTLSClientHello() argument
[all …]
Dnode_crypto_bio.cc271 size_t avail = read_head_->write_pos_ - read_head_->read_pos_; in Read() local
272 if (avail > left) in Read()
273 avail = left; in Read()
277 memcpy(out + offset, read_head_->data_ + read_head_->read_pos_, avail); in Read()
278 read_head_->read_pos_ += avail; in Read()
281 bytes_read += avail; in Read()
282 offset += avail; in Read()
283 left -= avail; in Read()
328 size_t avail = current->write_pos_ - current->read_pos_; in IndexOf() local
329 if (avail > left) in IndexOf()
[all …]
/third_party/gstreamer/gstreamer/tests/check/libs/
Dadapter.c41 guint avail; in GST_START_TEST() local
60 avail = gst_adapter_available (adapter); in GST_START_TEST()
61 fail_if (avail != 512); in GST_START_TEST()
62 avail = gst_adapter_available_fast (adapter); in GST_START_TEST()
63 fail_if (avail != 512); in GST_START_TEST()
93 avail = gst_adapter_available (adapter); in GST_START_TEST()
94 fail_if (avail != 502); in GST_START_TEST()
95 avail = gst_adapter_available_fast (adapter); in GST_START_TEST()
96 fail_if (avail != 502); in GST_START_TEST()
114 avail = gst_adapter_available (adapter); in GST_START_TEST()
[all …]
/third_party/gettext/libtextstyle/gnulib-local/lib/
Dfd-ostream.oo.c45 size_t avail; /* Number of bytes available in the buffer. */ member
80 assert (stream->avail > 0); in write_mem()
84 size_t n = (len <= stream->avail ? len : stream->avail); in write_mem()
87 memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); in write_mem()
89 stream->avail -= n; in write_mem()
92 if (stream->avail == 0) in write_mem()
97 stream->avail = BUFSIZE; in write_mem()
102 if (len < stream->avail) in write_mem()
105 memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); in write_mem()
106 stream->avail -= len; in write_mem()
[all …]
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpmpvpay.c176 guint avail; in gst_rtp_mpv_pay_flush() local
182 avail = gst_adapter_available (rtpmpvpay->adapter); in gst_rtp_mpv_pay_flush()
186 GST_DEBUG_OBJECT (rtpmpvpay, "available %u", avail); in gst_rtp_mpv_pay_flush()
187 if (avail == 0) in gst_rtp_mpv_pay_flush()
191 gst_buffer_list_new_sized (avail / (GST_RTP_BASE_PAYLOAD_MTU (rtpmpvpay) - in gst_rtp_mpv_pay_flush()
194 while (avail > 0) { in gst_rtp_mpv_pay_flush()
201 packet_len = gst_rtp_buffer_calc_packet_len (avail + 4, 0, 0); in gst_rtp_mpv_pay_flush()
229 avail -= payload_len; in gst_rtp_mpv_pay_flush()
231 gst_rtp_buffer_set_marker (&rtp, avail == 0); in gst_rtp_mpv_pay_flush()
254 guint avail, packet_len; in gst_rtp_mpv_pay_handle_buffer() local
[all …]
Dgstrtpj2kdepay.c245 guint avail, MHF, mh_id; in gst_rtp_j2k_depay_flush_pu() local
250 avail = gst_adapter_available (rtpj2kdepay->pu_adapter); in gst_rtp_j2k_depay_flush_pu()
251 if (avail == 0) in gst_rtp_j2k_depay_flush_pu()
257 GST_DEBUG_OBJECT (rtpj2kdepay, "flushing PU of size %u", avail); in gst_rtp_j2k_depay_flush_pu()
262 packets = gst_adapter_take_list (rtpj2kdepay->pu_adapter, avail); in gst_rtp_j2k_depay_flush_pu()
277 mheader = gst_adapter_take_buffer (rtpj2kdepay->pu_adapter, avail); in gst_rtp_j2k_depay_flush_pu()
292 guint avail, mh_id; in gst_rtp_j2k_depay_flush_tile() local
305 avail = gst_adapter_available (rtpj2kdepay->t_adapter); in gst_rtp_j2k_depay_flush_tile()
306 if (avail == 0) in gst_rtp_j2k_depay_flush_tile()
311 GST_DEBUG_OBJECT (rtpj2kdepay, "flushing tile of size %u", avail); in gst_rtp_j2k_depay_flush_tile()
[all …]
Dgstrtpac3pay.c238 guint avail, FT, NF, mtu; in gst_rtp_ac3_pay_flush() local
247 avail = gst_adapter_available (rtpac3pay->adapter); in gst_rtp_ac3_pay_flush()
257 GST_LOG_OBJECT (rtpac3pay, "flushing %u bytes", avail); in gst_rtp_ac3_pay_flush()
259 while (avail > 0) { in gst_rtp_ac3_pay_flush()
268 packet_len = gst_rtp_buffer_calc_packet_len (2 + avail, 0, 0); in gst_rtp_ac3_pay_flush()
287 if ((avail * 5) / 8 >= (payload_len - 2)) in gst_rtp_ac3_pay_flush()
293 NF = (avail + maxlen - 1) / maxlen; in gst_rtp_ac3_pay_flush()
320 if (avail == payload_len) in gst_rtp_ac3_pay_flush()
331 avail -= payload_len; in gst_rtp_ac3_pay_flush()
348 gsize avail, left, NF; in gst_rtp_ac3_pay_handle_buffer() local
[all …]
Dgstrtpmpapay.c177 guint avail; in gst_rtp_mpa_pay_flush() local
189 avail = gst_adapter_available (rtpmpapay->adapter); in gst_rtp_mpa_pay_flush()
194 gst_buffer_list_new_sized (avail / (GST_RTP_BASE_PAYLOAD_MTU (rtpmpapay) - in gst_rtp_mpa_pay_flush()
198 while (avail > 0) { in gst_rtp_mpa_pay_flush()
207 packet_len = gst_rtp_buffer_calc_packet_len (4 + avail, 0, 0); in gst_rtp_mpa_pay_flush()
237 avail -= payload_len; in gst_rtp_mpa_pay_flush()
240 if (avail == 0) in gst_rtp_mpa_pay_flush()
265 guint size, avail; in gst_rtp_mpa_pay_handle_buffer() local
280 avail = gst_adapter_available (rtpmpapay->adapter); in gst_rtp_mpa_pay_handle_buffer()
284 packet_len = gst_rtp_buffer_calc_packet_len (4 + avail + size, 0, 0); in gst_rtp_mpa_pay_handle_buffer()
[all …]
Dgstrtpmp2tpay.c126 guint avail, mtu; in gst_rtp_mp2t_pay_flush() local
130 avail = gst_adapter_available (rtpmp2tpay->adapter); in gst_rtp_mp2t_pay_flush()
134 while (avail > 0 && (ret == GST_FLOW_OK)) { in gst_rtp_mp2t_pay_flush()
141 packet_len = gst_rtp_buffer_calc_packet_len (avail, 0, 0); in gst_rtp_mp2t_pay_flush()
161 avail -= payload_len; in gst_rtp_mp2t_pay_flush()
180 guint size, avail, packet_len; in gst_rtp_mp2t_pay_handle_buffer() local
192 avail = gst_adapter_available (rtpmp2tpay->adapter); in gst_rtp_mp2t_pay_handle_buffer()
195 if (avail == 0) { in gst_rtp_mp2t_pay_handle_buffer()
201 packet_len = gst_rtp_buffer_calc_packet_len (avail + size, 0, 0); in gst_rtp_mp2t_pay_handle_buffer()
Dgstrtpklvdepay.c215 gsize avail, data_len, len_size; in gst_rtp_klv_depay_process_data() local
220 avail = gst_adapter_available (klvdepay->adapter); in gst_rtp_klv_depay_process_data()
222 GST_TRACE_OBJECT (klvdepay, "%" G_GSIZE_FORMAT " bytes in adapter", avail); in gst_rtp_klv_depay_process_data()
224 if (avail == 0) in gst_rtp_klv_depay_process_data()
228 if (avail < 16 + 1) in gst_rtp_klv_depay_process_data()
232 data_len = MIN (avail - 16, 1 + 8); in gst_rtp_klv_depay_process_data()
238 "have %" G_GSIZE_FORMAT " bytes", 16 + len_size + v_len, avail); in gst_rtp_klv_depay_process_data()
240 if (avail < 16 + len_size + v_len) in gst_rtp_klv_depay_process_data()
244 if (avail > 16 + len_size + v_len) in gst_rtp_klv_depay_process_data()
247 outbuf = gst_adapter_take_buffer (klvdepay->adapter, avail); in gst_rtp_klv_depay_process_data()
[all …]
Dgstrtpmp4vpay.c234 guint avail, mtu; in gst_rtp_mp4v_pay_flush() local
245 avail = gst_adapter_available (rtpmp4vpay->adapter); in gst_rtp_mp4v_pay_flush()
249 gst_adapter_flush (rtpmp4vpay->adapter, avail); in gst_rtp_mp4v_pay_flush()
250 avail = 0; in gst_rtp_mp4v_pay_flush()
253 if (!avail) in gst_rtp_mp4v_pay_flush()
261 list = gst_buffer_list_new_sized ((avail / (mtu - RTP_HEADER_LEN)) + 1); in gst_rtp_mp4v_pay_flush()
263 while (avail > 0) { in gst_rtp_mp4v_pay_flush()
270 packet_len = gst_rtp_buffer_calc_packet_len (avail, 0, 0); in gst_rtp_mp4v_pay_flush()
286 avail -= payload_len; in gst_rtp_mp4v_pay_flush()
289 gst_rtp_buffer_set_marker (&rtp, avail == 0); in gst_rtp_mp4v_pay_flush()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/mpegdemux/
Dgstpesfilter.c119 gint avail, datalen; in gst_pes_filter_parse() local
122 avail = gst_adapter_available (filter->adapter); in gst_pes_filter_parse()
124 if (avail < 6) in gst_pes_filter_parse()
146 filter->length, avail, filter->start_code); in gst_pes_filter_parse()
164 if (filter->gather_pes && avail < filter->length + 6) { in gst_pes_filter_parse()
166 filter->id, filter->length + 6, avail); in gst_pes_filter_parse()
171 avail = MIN (avail, filter->length + 6); in gst_pes_filter_parse()
174 if (avail < 6) in gst_pes_filter_parse()
181 data = gst_adapter_map (filter->adapter, avail); in gst_pes_filter_parse()
188 datalen = avail - 6; in gst_pes_filter_parse()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/resindvd/
Dgstpesfilter.c119 gint avail, datalen; in gst_pes_filter_parse() local
122 avail = gst_adapter_available (filter->adapter); in gst_pes_filter_parse()
124 if (avail < 6) in gst_pes_filter_parse()
146 filter->length, avail, filter->start_code); in gst_pes_filter_parse()
164 if (filter->gather_pes && avail < filter->length + 6) { in gst_pes_filter_parse()
166 filter->id, filter->length + 6, avail); in gst_pes_filter_parse()
171 avail = MIN (avail, filter->length + 6); in gst_pes_filter_parse()
174 if (avail < 6) in gst_pes_filter_parse()
181 data = gst_adapter_map (filter->adapter, avail); in gst_pes_filter_parse()
188 datalen = avail - 6; in gst_pes_filter_parse()
[all …]
/third_party/uboot/u-boot-2020.01/cmd/
Dtrace.c34 size_t buff_size, avail, buff_ptr, needed, used; in create_func_list() local
41 avail = buff_size - buff_ptr; in create_func_list()
42 err = trace_list_functions(buff + buff_ptr, avail, &needed); in create_func_list()
45 used = min(avail, (size_t)needed); in create_func_list()
57 size_t buff_size, avail, buff_ptr, needed, used; in create_call_list() local
64 avail = buff_size - buff_ptr; in create_call_list()
65 err = trace_list_calls(buff + buff_ptr, avail, &needed); in create_call_list()
68 used = min(avail, (size_t)needed); in create_call_list()
/third_party/icu/icu4c/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dbasictz.cpp147 UBool avail; in getSimpleRulesNear() local
150 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear()
151 if (avail) { in getSimpleRulesNear()
185 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear()
186 if (avail) { in getSimpleRulesNear()
204avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear()
205 if (!avail || d > date in getSimpleRulesNear()
217 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear()
218 if (avail) { in getSimpleRulesNear()
237avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear()
[all …]
/third_party/libwebsockets/lib/roles/ws/
Dserver-ws.c731 unsigned int avail = (unsigned int)len; in lws_ws_frame_rest_is_payload() local
751 avail = (int)wsi->protocol->rx_buffer_size; in lws_ws_frame_rest_is_payload()
753 avail = wsi->context->pt_serv_buf_size; in lws_ws_frame_rest_is_payload()
757 if (avail > wsi->ws->rx_packet_length) in lws_ws_frame_rest_is_payload()
758 avail = (unsigned int)wsi->ws->rx_packet_length; in lws_ws_frame_rest_is_payload()
761 if (avail > len) in lws_ws_frame_rest_is_payload()
762 avail = (unsigned int)len; in lws_ws_frame_rest_is_payload()
764 if (!avail) in lws_ws_frame_rest_is_payload()
768 pmdrx.eb_in.len = avail; in lws_ws_frame_rest_is_payload()
770 pmdrx.eb_out.len = avail; in lws_ws_frame_rest_is_payload()
[all …]
/third_party/pulseaudio/src/tests/
Dalsa-time-test.c157 snd_pcm_sframes_t avail, delay; in main() local
176 avail = snd_pcm_avail(pcm); in main()
177 assert(avail >= 0); in main()
193 assert(!revents || avail > 0); in main()
195 if ((!cap && (avail >= fillrate)) || (cap && (unsigned)avail >= buffer_size)) { in main()
210 avail == last_avail && in main()
233 (signed long) avail, in main()
242 assert((unsigned) avail <= buffer_size); in main()
244 last_avail = avail; in main()
/third_party/toybox/toys/posix/
Ddf.c100 unsigned long long size, used, avail, percent, block; in show_mt() local
124 avail = getuid() ? mt->statvfs.f_favail : mt->statvfs.f_ffree; in show_mt()
129 avail= (block*(getuid()?mt->statvfs.f_bavail:mt->statvfs.f_bfree))/TT.units; in show_mt()
131 if (!(used+avail)) percent = 0; in show_mt()
133 percent = (used*100)/(used+avail); in show_mt()
134 if (used*100 != percent*(used+avail)) percent++; in show_mt()
144 measure_numeric_column(3, avail); in show_mt()
155 human_readable(avail_str, avail, hr_flags); in show_mt()
163 TT.column_widths[3], avail, in show_mt()
/third_party/skia/src/core/
DSkTBlockList.h103 int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T); in reserve() local
104 if (n > avail) { in reserve()
105 int reserved = n - avail; in reserve()
311 int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T); in concat() local
312 if (headItemCount > avail) { in concat()
316 fAllocator->template reserve<alignof(T)>((headItemCount - avail) * sizeof(T), in concat()
330 if (avail > 0) { in concat()
332 copy(headBlock, headStart, fAllocator.allocator(), std::min(headItemCount, avail)); in concat()
334 if (headItemCount > avail) { in concat()
336 copy(headBlock, headStart + avail * sizeof(T), in concat()
[all …]
/third_party/node/deps/nghttp2/lib/
Dnghttp2_hd_huffman.c52 size_t avail; in nghttp2_hd_huff_encode() local
55 avail = nghttp2_bufs_cur_avail(bufs); in nghttp2_hd_huff_encode()
64 if (avail >= 4) { in nghttp2_hd_huff_encode()
68 avail -= 4; in nghttp2_hd_huff_encode()
83 avail = nghttp2_bufs_cur_avail(bufs); in nghttp2_hd_huff_encode()
/third_party/nghttp2/lib/
Dnghttp2_hd_huffman.c52 size_t avail; in nghttp2_hd_huff_encode() local
55 avail = nghttp2_bufs_cur_avail(bufs); in nghttp2_hd_huff_encode()
64 if (avail >= 4) { in nghttp2_hd_huff_encode()
68 avail -= 4; in nghttp2_hd_huff_encode()
83 avail = nghttp2_bufs_cur_avail(bufs); in nghttp2_hd_huff_encode()
/third_party/skia/third_party/externals/libgifcodec/
DSkGifImageReader.cpp235 avail = clearCode + 2; in doLZW()
249 if (code > avail) { in doLZW()
256 if (code == avail) { in doLZW()
297 if (tempCode == avail) { in doLZW()
303 if (avail < SK_MAX_DICTIONARY_ENTRIES && oldcode != -1) { in doLZW()
310 prefix[avail] = (l == 0) ? oldcode : prefix[oldcode]; in doLZW()
311 suffix[avail] = suffix[oldcode]; in doLZW()
312 suffix[avail][l] = firstchar; in doLZW()
313 suffixLength[avail] = codeLength; in doLZW()
314 ++avail; in doLZW()
[all …]

12345678910>>...12