Lines Matching defs:buf
100 unsigned char buf[3];
105 coap_encode_var_safe(buf, sizeof(buf),
107 buf);
110 coap_encode_var_safe(buf, sizeof(buf), 0x2ffff), buf);
175 unsigned char *buf = _buf;
182 snprintf((char *)buf, buflen, "test/%p", (void *)test_payload);
183 uri = coap_new_str_const(buf, strlen((char *)buf));
211 res = coap_split_path(uri->s, uri->length, buf, &buflen);
215 coap_opt_length(buf), coap_opt_value(buf));
217 buf += coap_opt_size(buf);
306 unsigned char buf[70];
311 coap_encode_var_safe(buf, sizeof(buf),
313 buf);
321 while ((len < sizeof(buf)) && (q = coap_option_next(&opt_iter))) {
322 L = min(sizeof(buf) - len, 11);
323 memcpy(buf + len, "Uri-Query: ", L);
326 L = min(sizeof(buf) - len, coap_opt_length(q));
327 memcpy(buf + len, coap_opt_value(q), L);
330 if (len < sizeof(buf))
331 buf[len++] = '\n';
334 coap_add_data(response, len, buf);