Lines Matching refs:length
120 coap_add_data(response, rd->data.length, rd->data.s); in hnd_get_resource()
152 if (coap_get_data(request, &tmp.length, &data)) { in hnd_put_resource()
154 tmp.s = (unsigned char *)coap_malloc(tmp.length); 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()
277 ++data; result->length++; in parse_param()
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()
375 memcpy(rd->data.s, data, rd->data.length); in make_rd()
427 if (h.length) { /* client has specified a node name */ in hnd_post_rd()
428 memcpy(loc + loc_size, h.s, min(h.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
429 loc_size += min(h.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
431 if (ins.length && loc_size > 1) { in hnd_post_rd()
434 ins.s, min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
435 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
444 if (ins.length) { in hnd_post_rd()
448 min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
449 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
472 buf = (unsigned char *)coap_malloc(ins.length + 2); in hnd_post_rd()
476 memcpy(buf + 1, ins.s, ins.length); in hnd_post_rd()
477 buf[ins.length + 1] = '"'; in hnd_post_rd()
482 ins.length + 2, in hnd_post_rd()
488 buf = (unsigned char *)coap_malloc(rt.length + 2); in hnd_post_rd()
492 memcpy(buf + 1, rt.s, rt.length); in hnd_post_rd()
493 buf[rt.length + 1] = '"'; in hnd_post_rd()
498 rt.length + 2,COAP_ATTR_FLAGS_RELEASE_VALUE); in hnd_post_rd()