Lines Matching defs:old_length
666 size_t old_length = 0;
672 old_length = coap_opt_parse(option, (size_t)-1, &decode);
673 if (old_length == 0)
677 if (new_length > old_length) {
679 pdu->used_size + new_length - old_length))
685 if (new_length != old_length)
686 memmove(&option[new_length], &option[old_length],
687 pdu->used_size - (option - pdu->token) - old_length);
693 if (new_length >= old_length) {
694 pdu->used_size += new_length - old_length;
696 pdu->data += new_length - old_length;
698 pdu->used_size -= old_length - new_length;
700 pdu->data -= old_length - new_length;