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