Lines Matching refs:data
57 str data; /**< points to the resource description */ member
81 coap_free(rd->data.s); in rd_delete()
119 if (rd && rd->data.s) in hnd_get_resource()
120 coap_add_data(response, rd->data.length, rd->data.s); in hnd_get_resource()
142 unsigned char *data; in hnd_put_resource()
152 if (coap_get_data(request, &tmp.length, &data)) { in hnd_put_resource()
161 coap_free(rd->data.s); in hnd_put_resource()
162 rd->data.s = tmp.s; in hnd_put_resource()
163 rd->data.length = tmp.length; in hnd_put_resource()
164 memcpy(rd->data.s, data, rd->data.length); in hnd_put_resource()
249 unsigned char *data, in parse_param() argument
262 if (memcmp(search, data, search_len) == 0) { in parse_param()
263 data += search_len; in parse_param()
267 if (!data_len || *data == '=' || *data == '&') { in parse_param()
268 while (data_len && *data != '=') { in parse_param()
269 ++data; --data_len; in parse_param()
275 result->s = ++data; in parse_param()
276 while (--data_len && *data != '&') { in parse_param()
277 ++data; result->length++; in parse_param()
286 while (--data_len && *data++ != '&') in parse_param()
357 unsigned char *data; in make_rd() local
368 if (coap_get_data(pdu, &rd->data.length, &data)) { in make_rd()
369 rd->data.s = (unsigned char *)coap_malloc(rd->data.length); in make_rd()
370 if (!rd->data.s) { in make_rd()
375 memcpy(rd->data.s, data, rd->data.length); in make_rd()