Lines Matching refs:data
48 unsigned char data[]; /* the actual contents */ member
61 unsigned char data[]; /* the actual contents */ member
170 coap_hash(test_payload->data, test_payload->length, etag); in hnd_get_resource()
195 coap_add_block(response, test_payload->length, test_payload->data, in hnd_get_resource()
198 if (!coap_add_data(response, test_payload->length, test_payload->data)) { in hnd_get_resource()
205 coap_add_block(response, test_payload->length, test_payload->data, in hnd_get_resource()
248 unsigned char *data; in hnd_post_test() local
256 coap_get_data(request, &len, &data); in hnd_post_test()
270 uri->length = min(l, snprintf((char *)uri->data, l, "test/%p", test_payload)); in hnd_post_test()
273 memcpy(test_payload->data, data, len); in hnd_post_test()
275 r = coap_resource_init(uri->data, uri->length, 0); in hnd_post_test()
290 res = coap_split_path(uri->data, uri->length, buf, &buflen); in hnd_post_test()
312 unsigned char *data; in hnd_put_test() local
316 coap_get_data(request, &len, &data); in hnd_put_test()
334 memcpy(payload->data, data, len); in hnd_put_test()
524 payload->length = fread(payload->data, 1, statbuf.st_size, inputfile); in make_large()
542 memcpy(test_payload->data, "put data here", test_payload->length); in init_resources()
585 memcpy(test_payload->data, "segsegseg!", test_payload->length); in init_resources()