Lines Matching refs:loc_size
400 size_t loc_size; in hnd_post_rd() local
411 loc_size = RD_ROOT_SIZE; in hnd_post_rd()
412 loc[loc_size++] = '/'; 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()
432 loc[loc_size++] = '-'; in hnd_post_rd()
433 memcpy((char *)(loc + loc_size), 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()
439 loc_size += in hnd_post_rd()
440 snprintf((char *)(loc + loc_size), LOCSIZE - loc_size - 1, in hnd_post_rd()
443 if (loc_size > 1) { in hnd_post_rd()
445 loc[loc_size++] = '-'; in hnd_post_rd()
446 memcpy((char *)(loc + loc_size), 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()
454 loc_size += snprintf((char *)(loc + loc_size), in hnd_post_rd()
455 LOCSIZE - loc_size - 1, in hnd_post_rd()
466 r = coap_resource_init(loc, loc_size, COAP_RESOURCE_FLAGS_RELEASE_URI); in hnd_post_rd()
508 coap_hash_path(loc, loc_size, rd->key); in hnd_post_rd()
528 nseg = coap_split_path(loc, loc_size, b, &buflen); in hnd_post_rd()