Lines Matching refs:loc_size
409 size_t loc_size; in hnd_post_rd() local
422 loc_size = RD_ROOT_SIZE; in hnd_post_rd()
423 loc[loc_size++] = '/'; in hnd_post_rd()
434 memcpy(loc + loc_size, h.s, min(h.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
435 loc_size += min(h.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
437 if (ins.length && loc_size > 1) { in hnd_post_rd()
438 loc[loc_size++] = '-'; in hnd_post_rd()
439 memcpy((char *)(loc + loc_size), in hnd_post_rd()
440 ins.s, min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
441 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
445 loc_size += in hnd_post_rd()
446 snprintf((char *)(loc + loc_size), LOCSIZE - loc_size - 1, in hnd_post_rd()
449 if (loc_size > 1) { in hnd_post_rd()
451 loc[loc_size++] = '-'; in hnd_post_rd()
452 memcpy((char *)(loc + loc_size), in hnd_post_rd()
454 min(ins.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
455 loc_size += min(ins.length, LOCSIZE - loc_size - 1); in hnd_post_rd()
460 loc_size += snprintf((char *)(loc + loc_size), in hnd_post_rd()
461 LOCSIZE - loc_size - 1, in hnd_post_rd()
473 resource_val.length = loc_size; in hnd_post_rd()
538 nseg = coap_split_path(loc, loc_size, b, &buflen); in hnd_post_rd()