[riot-notifications] [RIOT-OS/RIOT] sys: Add Link Format module (#11189)

Leandro Lanzieri notifications at github.com
Fri Jun 14 11:50:59 CEST 2019


leandrolanzieri commented on this pull request.



> +     * the array is used */
+    while ((!params && pos_in_link < pos) || (params && link->params_len < params_len)) {
+        clif_param_t *param = params ? &params[link->params_len] : NULL;
+        ssize_t param_size = clif_get_param(pos_in_link, pos - pos_in_link,
+                                            param);
+        if (param_size < 0) {
+            break;
+        }
+        pos_in_link += param_size;
+        link->params_len++;
+    }
+
+    return pos - buf;
+}
+
+ssize_t clif_encode_link(clif_t *link, char *buf, size_t maxlen)

Changed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11189#discussion_r293739008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190614/41fc9da4/attachment.html>


More information about the notifications mailing list