Lines Matching refs:len

37 strnchr(unsigned char *s, size_t len, unsigned char c) {  in strnchr()  argument
38 while (len && *s++ != c) in strnchr()
39 --len; in strnchr()
41 return len ? s : NULL; in strnchr()
45 coap_split_uri(unsigned char *str_var, size_t len, coap_uri_t *uri) { in coap_split_uri() argument
63 while (len && *q && tolower(*p) == *q) { in coap_split_uri()
64 ++p; ++q; --len; in coap_split_uri()
75 if (len && (secure = tolower(*p) == 's')) { in coap_split_uri()
76 ++p; --len; in coap_split_uri()
80 while (len && *q && tolower(*p) == *q) { in coap_split_uri()
81 ++p; ++q; --len; in coap_split_uri()
91 if (len && *p == '[') { /* IPv6 address reference */ in coap_split_uri()
94 while (len && *q != ']') { in coap_split_uri()
95 ++q; --len; in coap_split_uri()
98 if (!len || *q != ']' || p == q) { in coap_split_uri()
104 ++q; --len; in coap_split_uri()
106 while (len && *q != ':' && *q != '/' && *q != '?') { in coap_split_uri()
109 --len; in coap_split_uri()
121 if (len && *q == ':') { in coap_split_uri()
123 --len; in coap_split_uri()
125 while (len && isdigit(*q)) { in coap_split_uri()
127 --len; in coap_split_uri()
148 if (!len) in coap_split_uri()
153 --len; in coap_split_uri()
155 while (len && *q != '?') { in coap_split_uri()
157 --len; in coap_split_uri()
167 if (len && *p == '?') { in coap_split_uri()
169 --len; in coap_split_uri()
170 COAP_SET_STR(&uri->query, len, p); in coap_split_uri()
171 len = 0; in coap_split_uri()
175 return len ? -1 : 0; in coap_split_uri()
310 dots(unsigned char *s, size_t len) { in dots() argument
311 return *s == '.' && (len == 1 || (*(s+1) == '.' && len == 2)); in dots()
360 write_option(unsigned char *s, size_t len, void *data) { in write_option() argument
365 res = make_decoded_option(s, len, state->buf.s, state->buf.length); in write_option()
476 hash_segment(unsigned char *s, size_t len, void *data) { in hash_segment() argument
477 coap_hash(s, len, data); in hash_segment()
481 coap_hash_path(const unsigned char *path, size_t len, coap_key_t key) { in coap_hash_path() argument
487 coap_split_path_impl(path, len, hash_segment, key); in coap_hash_path()