Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 - 25 of 317) sorted by relevance

12345678910>>...13

/third_party/libexif/libexif/olympus/
H A Dmnote-olympus-entry.c33 #define CF(format,target,v,maxlen) \
36 snprintf (v, maxlen, \
45 #define CF2(format,target1,target2,v,maxlen) \
48 snprintf (v, maxlen, \
58 #define CC(number,target,v,maxlen) \
61 snprintf (v, maxlen, \
68 #define CC2(number,t1,t2,v,maxlen) \
71 snprintf (v, maxlen, \
273 mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen) in mnote_olympus_entry_get_value() argument
288 memset (v, 0, maxlen); in mnote_olympus_entry_get_value()
[all...]
/third_party/libexif/libexif/canon/
H A Dmnote-canon-entry.c34 #define CF(format,target,v,maxlen) \
37 snprintf (v, maxlen, \
46 #define CC(number,target,v,maxlen) \
49 snprintf (v, maxlen, \
55 #define CC2(number,t1,t2,v,maxlen) \
58 snprintf (v, maxlen, \
441 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_value()
454 strncpy (val, _(table[j].name), maxlen); in canon_search_table_value()
457 snprintf (val, maxlen, "0x%04x", vs); in canon_search_table_value()
463 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_bitfield()
440 canon_search_table_value(const struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) canon_search_table_value() argument
462 canon_search_table_bitfield(const struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) canon_search_table_bitfield() argument
549 mnote_canon_entry_get_value(const MnoteCanonEntry *entry, unsigned int t, char *val, unsigned int maxlen) mnote_canon_entry_get_value() argument
[all...]
/third_party/libexif/libexif/
H A Dexif-entry.c479 * \param[in] maxlen the length of the buffer val
482 exif_entry_format_value(ExifEntry *e, char *val, size_t maxlen) in exif_entry_format_value() argument
495 if (!e->size || !maxlen) in exif_entry_format_value()
499 snprintf (val, maxlen, _("%i bytes undefined data"), e->size); in exif_entry_format_value()
504 snprintf (val, maxlen, "0x%02x", v_byte); in exif_entry_format_value()
508 snprintf (val+len, maxlen-len, ", 0x%02x", v_byte); in exif_entry_format_value()
510 if (len >= maxlen-1) break; in exif_entry_format_value()
515 snprintf (val, maxlen, "%u", v_short); in exif_entry_format_value()
520 snprintf (val+len, maxlen-len, ", %u", v_short); in exif_entry_format_value()
522 if (len >= maxlen in exif_entry_format_value()
878 exif_entry_get_value(ExifEntry *e, char *val, unsigned int maxlen) exif_entry_get_value() argument
[all...]
H A Dexif-utils.c220 exif_convert_utf16_to_utf8 (char *out, const unsigned char *in, int maxlen) in exif_convert_utf16_to_utf8() argument
222 if (maxlen <= 0) { in exif_convert_utf16_to_utf8()
230 if (maxlen > 1) { in exif_convert_utf16_to_utf8()
232 maxlen--; in exif_convert_utf16_to_utf8()
237 if (maxlen > 2) { in exif_convert_utf16_to_utf8()
240 maxlen -= 2; in exif_convert_utf16_to_utf8()
245 if (maxlen > 3) { in exif_convert_utf16_to_utf8()
249 maxlen -= 3; in exif_convert_utf16_to_utf8()
/third_party/node/deps/openssl/openssl/crypto/bio/
H A Dbio_print.c41 size_t *maxlen, size_t *retlen, int *truncated,
89 size_t *maxlen, in _dopr()
111 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) in _dopr()
119 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, ch)) in _dopr()
234 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, 10, min, in _dopr()
262 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, in _dopr()
273 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
285 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
297 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
312 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, in _dopr()
87 _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) _dopr() argument
380 fmtstr(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, const char *value, int flags, int min, int max) fmtstr() argument
432 fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int64_t value, int base, int min, int max, int flags) fmtint() argument
562 fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags, int style) fmtfp() argument
833 doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) doapr_outch() argument
[all...]
/third_party/openssl/crypto/bio/
H A Dbio_print.c41 size_t *maxlen, size_t *retlen, int *truncated,
89 size_t *maxlen, in _dopr()
111 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) in _dopr()
119 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, ch)) in _dopr()
234 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, 10, min, in _dopr()
262 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, in _dopr()
273 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
285 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
297 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
312 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, in _dopr()
87 _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) _dopr() argument
380 fmtstr(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, const char *value, int flags, int min, int max) fmtstr() argument
432 fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int64_t value, int base, int min, int max, int flags) fmtint() argument
562 fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags, int style) fmtfp() argument
833 doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) doapr_outch() argument
[all...]
/third_party/libexif/libexif/fuji/
H A Dmnote-fuji-entry.c31 #define CF(format,target,v,maxlen) \
34 snprintf (v, maxlen, \
43 #define CC(number,target,v,maxlen) \
46 snprintf (v, maxlen, \
191 char *val, unsigned int maxlen) in mnote_fuji_entry_get_value()
203 memset (val, 0, maxlen); in mnote_fuji_entry_get_value()
204 maxlen--; in mnote_fuji_entry_get_value()
208 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen); in mnote_fuji_entry_get_value()
209 CC (entry->components, 4, val, maxlen); in mnote_fuji_entry_get_value()
210 memcpy (val, entry->data, MIN(maxlen, entr in mnote_fuji_entry_get_value()
190 mnote_fuji_entry_get_value(MnoteFujiEntry *entry, char *val, unsigned int maxlen) mnote_fuji_entry_get_value() argument
[all...]
/third_party/libexif/libexif/pentax/
H A Dmnote-pentax-entry.c35 #define CF(format,target,v,maxlen) \
38 snprintf (v, maxlen, \
47 #define CC(number,target,v,maxlen) \
50 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \
60 snprintf (v, maxlen, \
309 char *val, unsigned int maxlen) in mnote_pentax_entry_get_value()
319 memset (val, 0, maxlen); in mnote_pentax_entry_get_value()
320 maxlen--; in mnote_pentax_entry_get_value()
343 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen); in mnote_pentax_entry_get_value()
308 mnote_pentax_entry_get_value(MnotePentaxEntry *entry, char *val, unsigned int maxlen) mnote_pentax_entry_get_value() argument
[all...]
/third_party/libexif/libexif/apple/
H A Dmnote-apple-entry.c34 mnote_apple_entry_get_value(MnoteAppleEntry *entry, char *v, unsigned int maxlen) { in mnote_apple_entry_get_value() argument
47 memset(v, 0, maxlen); in mnote_apple_entry_get_value()
48 maxlen--; in mnote_apple_entry_get_value()
59 snprintf(v, maxlen, "%d", vsl); in mnote_apple_entry_get_value()
65 strncpy (v, (char *) data, MIN (maxlen-1, size)); in mnote_apple_entry_get_value()
66 v[MIN (maxlen-1, size)] = 0; in mnote_apple_entry_get_value()
71 strncpy (v, (char *)data, MIN(maxlen, size)); in mnote_apple_entry_get_value()
79 if (len > maxlen) in mnote_apple_entry_get_value()
82 snprintf (v+len, maxlen-len, "%hu ", vs); in mnote_apple_entry_get_value()
94 if (len > maxlen) in mnote_apple_entry_get_value()
[all...]
/third_party/littlefs/scripts/
H A Dtailpipe.py33 def __init__(self, maxlen=None):
34 self.maxlen = maxlen
35 self.lines = co.deque(maxlen=maxlen)
39 if maxlen == 0:
56 def resize(self, maxlen):
57 self.maxlen = maxlen
58 if maxlen
[all...]
H A Dwatch.py69 def __init__(self, maxlen=None):
70 self.maxlen = maxlen
71 self.lines = co.deque(maxlen=maxlen)
75 if maxlen == 0:
92 def resize(self, maxlen):
93 self.maxlen = maxlen
94 if maxlen
[all...]
/third_party/optimized-routines/string/test/
H A Dstrnlen.c53 test (const struct fun *fun, int align, size_t maxlen, size_t len) in test() argument
58 size_t e = maxlen < len ? maxlen : len; in test()
75 size_t mte_len = maxlen < len + 1 ? maxlen : len + 1; in test()
77 r = fun->fun (s, maxlen); in test()
83 fun->name, s, maxlen, len, r, e); in test()
99 for (int maxlen = 0; maxlen < LEN; maxlen in main()
[all...]
H A Dmemrchr.c51 size_t maxlen) in test()
55 char *f = seekpos < maxlen ? s + seekpos : NULL; in test()
71 s[((len ^ align) & 1) && seekpos < maxlen ? seekpos - 1 : len] = seekchar; in test()
73 s = tag_buffer (s, maxlen, fun->test_mte); in test()
74 p = fun->fun (s, seekchar, maxlen); in test()
75 untag_buffer (s, maxlen, fun->test_mte); in test()
81 seekchar, maxlen, p, f); in test()
50 test(const struct fun *fun, int align, size_t seekpos, size_t len, size_t maxlen) test() argument
H A Dstrncmp.c50 test (const struct fun *fun, int s1align, int s2align, int maxlen, int diffpos, in test() argument
76 size_t mte_len = maxlen < len + 1 ? maxlen : len + 1; in test()
79 r = fun->fun (s1, s2, maxlen); in test()
83 if (diffpos >= maxlen) in test()
92 fun->name, s1align, s2align, maxlen, len, diffpos, r); in test()
H A Dmemchr.c53 size_t maxlen) in test()
57 char *f = seekpos < maxlen ? s + seekpos : NULL; in test()
75 int mte_len = seekpos != -1 ? seekpos + 1 : maxlen; in test()
77 p = fun->fun (s, seekchar, maxlen); in test()
84 seekchar, maxlen, p, f); in test()
52 test(const struct fun *fun, int align, size_t seekpos, size_t len, size_t maxlen) test() argument
/third_party/toybox/toys/pending/
H A Dfold.c34 int bufsz, len = 0, maxlen; in do_fold() local
36 if (toys.optflags & FLAG_w) maxlen = TT.width; in do_fold()
37 else if (toys.optflags & FLAG_u) maxlen = 0; in do_fold()
38 else maxlen = 80; in do_fold()
79 if (maxlen > 0 && len >= maxlen && buf[pos+1] != '\n' && buf[pos+1] != '\b') { in do_fold()
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
H A Dstreamname.py24 def validate_stream_name(v, maxlen=None):
34 maxlen = maxlen or _MAX_STREAM_NAME_LENGTH
35 if len(v) > maxlen:
36 raise ValueError('Maximum length exceeded (%d > %d)' % (len(v), maxlen))
51 validate_stream_name(key, maxlen=_MAX_TAG_KEY_LENGTH)
52 validate_stream_name(value, maxlen=_MAX_TAG_VALUE_LENGTH)
/third_party/alsa-lib/src/rawmidi/
H A Dump.c689 size_t maxlen, unsigned char bytes, int offset) in expand_sysex_data()
694 if (!maxlen) in expand_sysex_data()
708 static int expand_sysex7(const uint32_t *ump, uint8_t *buf, size_t maxlen, in expand_sysex7() argument
715 if (!maxlen) in expand_sysex7()
723 *filled = expand_sysex_data(ump, buf, maxlen, bytes, 8); in expand_sysex7()
728 static int expand_sysex8(const uint32_t *ump, uint8_t *buf, size_t maxlen, in expand_sysex8() argument
735 if (!maxlen) in expand_sysex8()
745 *filled = expand_sysex_data(ump, buf, maxlen, bytes - 1, 0); in expand_sysex8()
754 * \param maxlen max buffer size in bytes
758 int snd_ump_msg_sysex_expand(const uint32_t *ump, uint8_t *buf, size_t maxlen, in snd_ump_msg_sysex_expand() argument
688 expand_sysex_data(const uint32_t *data, uint8_t *buf, size_t maxlen, unsigned char bytes, int offset) expand_sysex_data() argument
[all...]
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dcolumns.c17 int len, maxlen = 0; in calculate_columns() local
21 if ((len = strlen(f->name)) > maxlen) in calculate_columns()
22 maxlen = len; in calculate_columns()
24 dc->width = maxlen + 2; in calculate_columns()
/third_party/openssl/apps/lib/
H A Dcolumns.c17 int len, maxlen = 0; in calculate_columns() local
21 if ((len = strlen(f->name)) > maxlen) in calculate_columns()
22 maxlen = len; in calculate_columns()
24 dc->width = maxlen + 2; in calculate_columns()
/third_party/python/Tools/scripts/
H A Dbyteyears.py38 maxlen = 1
40 maxlen = max(maxlen, len(filename))
55 print(filename.ljust(maxlen), end=' ')
/third_party/python/Modules/
H A D_collectionsmodule.c91 Py_ssize_t maxlen; /* maxlen is -1 for unbounded deques */ member
177 deque->maxlen = -1; in deque_new()
259 /* The deque's size limit is d.maxlen. The limit can be zero or positive.
260 * If there is no limit, then d.maxlen == -1.
268 * unsigned test that returns true whenever 0 <= maxlen < Py_SIZE(deque).
271 #define NEEDS_TRIM(deque, maxlen) ((size_t)(maxlen) < (size_t)(Py_SIZE(deque)))
274 deque_append_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) in deque_append_internal() argument
290 if (NEEDS_TRIM(deque, maxlen)) { in deque_append_internal()
311 deque_appendleft_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) deque_appendleft_internal() argument
382 Py_ssize_t maxlen = deque->maxlen; deque_extend() local
429 Py_ssize_t maxlen = deque->maxlen; deque_extendleft() local
1486 Py_ssize_t maxlen = -1; deque_init() local
[all...]
/third_party/libcoap/src/
H A Dcoap_option.c292 coap_opt_setheader(coap_opt_t *opt, size_t maxlen, in coap_opt_setheader() argument
298 if (maxlen == 0) /* need at least one byte */ in coap_opt_setheader()
304 if (maxlen < 2) { in coap_opt_setheader()
313 if (maxlen < 3) { in coap_opt_setheader()
327 if (maxlen < skip + 2) { in coap_opt_setheader()
336 if (maxlen < skip + 3) { in coap_opt_setheader()
372 coap_opt_encode(coap_opt_t *opt, size_t maxlen, uint16_t delta, in coap_opt_encode() argument
376 l = coap_opt_setheader(opt, maxlen, delta, length); in coap_opt_encode()
377 assert(l <= maxlen); in coap_opt_encode()
384 maxlen in coap_opt_encode()
[all...]
/third_party/python/Lib/test/
H A Dtest_deque.py55 d = deque(it, maxlen=3)
57 self.assertEqual(repr(d), 'deque([7, 8, 9], maxlen=3)')
68 d = deque(range(200), maxlen=10)
70 self.assertEqual(repr(d)[-30:], ', 198, 199, [...]], maxlen=10)')
71 d = deque(range(10), maxlen=None)
76 deque(it, maxlen=0)
80 d = deque(maxlen=0)
85 d = deque(maxlen=0)
90 self.assertEqual(deque().maxlen, None)
91 self.assertEqual(deque('abc').maxlen, Non
[all...]
/third_party/node/deps/openssl/openssl/crypto/
H A Do_str.c35 size_t maxlen; in CRYPTO_strndup() local
41 maxlen = OPENSSL_strnlen(str, s); in CRYPTO_strndup()
43 ret = CRYPTO_malloc(maxlen + 1, file, line); in CRYPTO_strndup()
45 memcpy(ret, str, maxlen); in CRYPTO_strndup()
46 ret[maxlen] = CH_ZERO; in CRYPTO_strndup()
66 size_t OPENSSL_strnlen(const char *str, size_t maxlen) in OPENSSL_strnlen() argument
70 for (p = str; maxlen-- != 0 && *p != CH_ZERO; ++p) ; in OPENSSL_strnlen()

Completed in 13 milliseconds

12345678910>>...13