Home
last modified time | relevance | path

Searched refs:max_length (Results 1 – 25 of 111) sorted by relevance

12345

/third_party/python/Include/internal/
Dpycore_blocks_output_buffer.h49 Py_ssize_t max_length; member
103 const Py_ssize_t max_length, in _BlocksOutputBuffer_InitAndGrow() argument
113 if (0 <= max_length && max_length < BUFFER_BLOCK_SIZE[0]) { in _BlocksOutputBuffer_InitAndGrow()
114 block_size = max_length; in _BlocksOutputBuffer_InitAndGrow()
135 buffer->max_length = max_length; in _BlocksOutputBuffer_InitAndGrow()
176 buffer->max_length = -1; in _BlocksOutputBuffer_InitWithSize()
211 if (buffer->max_length >= 0) { in _BlocksOutputBuffer_Grow()
213 Py_ssize_t rest = buffer->max_length - buffer->allocated; in _BlocksOutputBuffer_Grow()
/third_party/skia/third_party/externals/brotli/c/enc/
Dstatic_dict.c43 DictWord w, const uint8_t* data, size_t max_length) { in IsMatch() argument
44 if (w.len > max_length) { in IsMatch()
79 size_t min_length, size_t max_length, uint32_t* matches) { in BrotliFindAllStaticDictionaryMatches() argument
93 DictMatchLength(dictionary->words, data, id, l, max_length); in BrotliFindAllStaticDictionaryMatches()
107 if (l + 2 < max_length && in BrotliFindAllStaticDictionaryMatches()
125 if (matchlen < l || l + 6 >= max_length) { in BrotliFindAllStaticDictionaryMatches()
282 if (!IsMatch(dictionary->words, w, data, max_length)) { in BrotliFindAllStaticDictionaryMatches()
288 if (l + 1 >= max_length) { in BrotliFindAllStaticDictionaryMatches()
325 if (max_length >= 5 && (data[0] == ' ' || data[0] == '.')) { in BrotliFindAllStaticDictionaryMatches()
338 if (!IsMatch(dictionary->words, w, &data[1], max_length - 1)) { in BrotliFindAllStaticDictionaryMatches()
[all …]
Dhash_to_binary_tree_inc.h115 const size_t cur_ix, const size_t ring_buffer_mask, const size_t max_length, in FN()
120 BROTLI_MIN(size_t, max_length, MAX_TREE_COMP_LENGTH); in FN()
122 TO_BROTLI_BOOL(max_length >= MAX_TREE_COMP_LENGTH); in FN()
160 max_length - cur_len); in FN()
206 const size_t max_length, const size_t max_backward, in FN()
232 max_length); in FN()
239 if (best_len < max_length) { in FN()
241 ring_buffer_mask, max_length, max_backward, &best_len, matches); in FN()
249 &data[cur_ix_masked], minlen, max_length, &dict_matches[0])) { in FN()
251 size_t, BROTLI_MAX_STATIC_DICTIONARY_MATCH_LEN, max_length); in FN()
Dbackward_references_inc.h41 size_t max_length = pos_end - position; in EXPORT_FN() local
51 ringbuffer, ringbuffer_mask, dist_cache, position, max_length, in EXPORT_FN()
56 --max_length; in EXPORT_FN()
57 for (;; --max_length) { in EXPORT_FN()
61 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in EXPORT_FN()
70 ringbuffer, ringbuffer_mask, dist_cache, position + 1, max_length, in EXPORT_FN()
Dhash_longest_match_quickly_inc.h152 const size_t cur_ix, const size_t max_length, const size_t max_backward, in FN()
171 &data[prev_ix], &data[cur_ix_masked], max_length); in FN()
206 max_length); in FN()
237 max_length); in FN()
253 self->common, &data[cur_ix_masked], max_length, dictionary_distance, in FN()
Dhash_composite_inc.h114 const size_t max_length, const size_t max_backward, in FN()
118 distance_cache, cur_ix, max_length, max_backward, dictionary_distance, in FN()
121 distance_cache, cur_ix, max_length, max_backward, dictionary_distance, in FN()
Dhash_longest_match_inc.h163 const size_t max_length, const size_t max_backward, in FN()
196 max_length); in FN()
236 max_length); in FN()
257 self->common_, &data[cur_ix_masked], max_length, dictionary_distance, in FN()
/third_party/node/deps/brotli/c/enc/
Dstatic_dict.c43 DictWord w, const uint8_t* data, size_t max_length) { in IsMatch() argument
44 if (w.len > max_length) { in IsMatch()
79 size_t min_length, size_t max_length, uint32_t* matches) { in BrotliFindAllStaticDictionaryMatches() argument
93 DictMatchLength(dictionary->words, data, id, l, max_length); in BrotliFindAllStaticDictionaryMatches()
107 if (l + 2 < max_length && in BrotliFindAllStaticDictionaryMatches()
125 if (matchlen < l || l + 6 >= max_length) { in BrotliFindAllStaticDictionaryMatches()
282 if (!IsMatch(dictionary->words, w, data, max_length)) { in BrotliFindAllStaticDictionaryMatches()
288 if (l + 1 >= max_length) { in BrotliFindAllStaticDictionaryMatches()
325 if (max_length >= 5 && (data[0] == ' ' || data[0] == '.')) { in BrotliFindAllStaticDictionaryMatches()
338 if (!IsMatch(dictionary->words, w, &data[1], max_length - 1)) { in BrotliFindAllStaticDictionaryMatches()
[all …]
Dhash_to_binary_tree_inc.h115 const size_t cur_ix, const size_t ring_buffer_mask, const size_t max_length, in FN()
120 BROTLI_MIN(size_t, max_length, MAX_TREE_COMP_LENGTH); in FN()
122 TO_BROTLI_BOOL(max_length >= MAX_TREE_COMP_LENGTH); in FN()
160 max_length - cur_len); in FN()
206 const size_t max_length, const size_t max_backward, in FN()
232 max_length); in FN()
239 if (best_len < max_length) { in FN()
241 ring_buffer_mask, max_length, max_backward, &best_len, matches); in FN()
249 &data[cur_ix_masked], minlen, max_length, &dict_matches[0])) { in FN()
251 size_t, BROTLI_MAX_STATIC_DICTIONARY_MATCH_LEN, max_length); in FN()
Dbackward_references_inc.h41 size_t max_length = pos_end - position; in EXPORT_FN() local
51 ringbuffer, ringbuffer_mask, dist_cache, position, max_length, in EXPORT_FN()
56 --max_length; in EXPORT_FN()
57 for (;; --max_length) { in EXPORT_FN()
61 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0; in EXPORT_FN()
70 ringbuffer, ringbuffer_mask, dist_cache, position + 1, max_length, in EXPORT_FN()
Dhash_longest_match_quickly_inc.h152 const size_t cur_ix, const size_t max_length, const size_t max_backward, in FN()
171 &data[prev_ix], &data[cur_ix_masked], max_length); in FN()
206 max_length); in FN()
237 max_length); in FN()
253 self->common, &data[cur_ix_masked], max_length, dictionary_distance, in FN()
Dhash_composite_inc.h114 const size_t max_length, const size_t max_backward, in FN()
118 distance_cache, cur_ix, max_length, max_backward, dictionary_distance, in FN()
121 distance_cache, cur_ix, max_length, max_backward, dictionary_distance, in FN()
/third_party/node/deps/brotli/c/dec/
Dhuffman.c185 int max_length = -1; in BrotliBuildHuffmanTable() local
193 while (symbol_lists[max_length] == 0xFFFF) max_length--; in BrotliBuildHuffmanTable()
194 max_length += BROTLI_HUFFMAN_MAX_CODE_LENGTH + 1; in BrotliBuildHuffmanTable()
203 if (table_bits > max_length) { in BrotliBuildHuffmanTable()
204 table_bits = max_length; in BrotliBuildHuffmanTable()
234 for (len = root_bits + 1, step = 2; len <= max_length; ++len) { in BrotliBuildHuffmanTable()
/third_party/skia/third_party/externals/brotli/c/dec/
Dhuffman.c185 int max_length = -1; in BrotliBuildHuffmanTable() local
193 while (symbol_lists[max_length] == 0xFFFF) max_length--; in BrotliBuildHuffmanTable()
194 max_length += BROTLI_HUFFMAN_MAX_CODE_LENGTH + 1; in BrotliBuildHuffmanTable()
203 if (table_bits > max_length) { in BrotliBuildHuffmanTable()
204 table_bits = max_length; in BrotliBuildHuffmanTable()
234 for (len = root_bits + 1, step = 2; len <= max_length; ++len) { in BrotliBuildHuffmanTable()
/third_party/gstreamer/gstplugins_good/gst/multifile/
Dpatternspec.c43 guint max_length; member
144 if (string_length < pspec->min_length || string_length > pspec->max_length) in pattern_match()
222 pspec->max_length = 0; in pattern_spec_new()
247 pspec->max_length += 1; in pattern_spec_new()
249 pspec->max_length += 4; /* maximum UTF-8 character length */ in pattern_spec_new()
261 pspec->max_length++; in pattern_spec_new()
278 pspec->max_length = G_MAXUINT; in pattern_spec_new()
/third_party/python/Modules/clinic/
D_bz2module.c.h92 Py_ssize_t max_length);
103 Py_ssize_t max_length = -1; in _bz2_BZ2Decompressor_decompress() local
129 max_length = ival; in _bz2_BZ2Decompressor_decompress()
132 return_value = _bz2_BZ2Decompressor_decompress_impl(self, &data, max_length); in _bz2_BZ2Decompressor_decompress()
D_lzmamodule.c.h92 Py_ssize_t max_length);
103 Py_ssize_t max_length = -1; in _lzma_LZMADecompressor_decompress() local
129 max_length = ival; in _lzma_LZMADecompressor_decompress()
132 return_value = _lzma_LZMADecompressor_decompress_impl(self, &data, max_length); in _lzma_LZMADecompressor_decompress()
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dv4l2_validator.c86 int valid_string(char *str, unsigned int max_length) in valid_string() argument
92 while (i < max_length && str[i] != 0) { in valid_string()
104 if (i == max_length) { in valid_string()
/third_party/ffmpeg/libavcodec/
Dmjpegenc_huffman.c80 …f_mjpegenc_huffman_compute_bits(PTable *prob_table, HuffTable *distincts, int size, int max_length) in ff_mjpegenc_huffman_compute_bits() argument
90 av_assert0(max_length > 0); in ff_mjpegenc_huffman_compute_bits()
98 for (times = 0; times <= max_length; times++) { in ff_mjpegenc_huffman_compute_bits()
105 if (times < max_length) { in ff_mjpegenc_huffman_compute_bits()
/third_party/python/Modules/
D_bz2module.c21 OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length, in OutputBuffer_InitAndGrow() argument
27 buffer, max_length, (void**) next_out); in OutputBuffer_InitAndGrow()
436 decompress_buf(BZ2Decompressor *d, Py_ssize_t max_length) in decompress_buf() argument
445 if (OutputBuffer_InitAndGrow(&buffer, max_length, &bzs->next_out, &bzs->avail_out) < 0) { in decompress_buf()
472 if (OutputBuffer_GetDataSize(&buffer, bzs->avail_out) == max_length) { in decompress_buf()
493 decompress(BZ2Decompressor *d, char *data, size_t len, Py_ssize_t max_length) in decompress() argument
544 result = decompress_buf(d, max_length); in decompress()
626 Py_ssize_t max_length) in _bz2_BZ2Decompressor_decompress_impl() argument
635 result = decompress(self, data->buf, data->len, max_length); in _bz2_BZ2Decompressor_decompress_impl()
/third_party/PyYAML/lib/yaml/
Derror.py14 def get_snippet(self, indent=4, max_length=75): argument
21 if self.pointer-start > max_length/2-1:
29 if end-self.pointer > max_length/2-1:
/third_party/node/deps/v8/src/builtins/
Dbuiltins-arraybuffer.cc42 Handle<Object> max_length, InitializedFlag initialized) { in ConstructBuffer() argument
46 ResizableFlag resizable = max_length.is_null() ? ResizableFlag::kNotResizable in ConstructBuffer()
73 if (!TryNumberToSize(*max_length, &max_byte_length)) { in ConstructBuffer()
133 Handle<Object> max_length; in BUILTIN() local
136 isolate, max_length, in BUILTIN()
140 if (!max_length->IsUndefined(isolate)) { in BUILTIN()
142 isolate, number_max_length, Object::ToInteger(isolate, max_length)); in BUILTIN()
/third_party/node/deps/v8/include/
Dv8-fast-api-calls.h889 uint32_t max_length);
896 Local<Array> src, int32_t* dst, uint32_t max_length) {
905 Local<Array> src, double* dst, uint32_t max_length) {
911 Local<Array> src, T* dst, uint32_t max_length);
917 uint32_t max_length);
923 uint32_t max_length);
929 uint32_t max_length);
935 uint32_t max_length);
/third_party/node/deps/v8/src/api/
Dapi-inl.h268 uint32_t max_length) { in CopyAndConvertArrayToCppBuffer() argument
276 if (length > max_length) { in CopyAndConvertArrayToCppBuffer()
305 uint32_t max_length) { in TryCopyAndConvertArrayToCppBuffer() argument
307 max_length); in TryCopyAndConvertArrayToCppBuffer()
313 uint32_t max_length) { in TryToCopyAndConvertArrayToCppBuffer() argument
314 return CopyAndConvertArrayToCppBuffer<type_info_id, T>(src, dst, max_length); in TryToCopyAndConvertArrayToCppBuffer()
/third_party/python/Lib/test/
Dtest_bz2.py743 max_length = 100
749 max_length=max_length))
751 self.assertEqual(len(out[-1]), max_length)
754 out.append(bzd.decompress(b'', max_length=max_length))
756 self.assertEqual(len(out[-1]), max_length)
760 max_length=max_length))
761 self.assertLessEqual(len(out[-1]), max_length)
765 out.append(bzd.decompress(b'', max_length=max_length))
766 self.assertLessEqual(len(out[-1]), max_length)
780 max_length=0), b'')
[all …]

12345