Lines Matching refs:result
41 coap_opt_parse(const coap_opt_t *opt, size_t length, coap_option_t *result) {
46 assert(result);
51 result->delta = (*opt & 0xf0) >> 4;
52 result->length = *opt & 0x0f;
54 switch (result->delta) {
65 result->delta = ((*opt & 0xff) << 8) + 269;
66 if (result->delta < 269) {
73 result->delta += *opt & 0xff;
80 switch (result->length) {
89 result->length = ((*opt & 0xff) << 8) + 269;
93 result->length += *opt & 0xff;
104 result->value = opt;
105 if (length < result->length) {
113 return (opt + result->length) - opt_start;