Lines Matching refs:loc_size
392 size_t loc_size; in hnd_post_rd() local
405 loc_size = RD_ROOT_SIZE; in hnd_post_rd()
406 loc[loc_size++] = '/'; in hnd_post_rd()
417 memcpy(loc + loc_size, h.s, min(h.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
418 loc_size += min(h.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
420 if (ins.length && loc_size > 1) { in hnd_post_rd()
421 loc[loc_size++] = '-'; in hnd_post_rd()
422 memcpy((char *)(loc + loc_size), in hnd_post_rd()
423 ins.s, min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
424 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
428 loc_size += in hnd_post_rd()
429 snprintf((char *)(loc + loc_size), LOCSIZE - loc_size - 1, in hnd_post_rd()
432 if (loc_size > 1) { in hnd_post_rd()
434 loc[loc_size++] = '-'; in hnd_post_rd()
435 memcpy((char *)(loc + loc_size), in hnd_post_rd()
437 min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
438 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
443 loc_size += snprintf((char *)(loc + loc_size), in hnd_post_rd()
444 LOCSIZE - loc_size - 1, in hnd_post_rd()
456 resource_val.length = loc_size; in hnd_post_rd()
522 nseg = coap_split_path(loc, loc_size, b, &buflen); in hnd_post_rd()