Skip to content
Snippets Groups Projects
Commit 8644b5c3 authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_pktbuf: fix documentation formatting on gnrc_pktbuf_merge()

parent b4f7259a
Branches
No related tags found
No related merge requests found
...@@ -305,35 +305,39 @@ gnrc_pktsnip_t *gnrc_pktbuf_duplicate_upto(gnrc_pktsnip_t *pkt, gnrc_nettype_t t ...@@ -305,35 +305,39 @@ gnrc_pktsnip_t *gnrc_pktbuf_duplicate_upto(gnrc_pktsnip_t *pkt, gnrc_nettype_t t
* the data of all following packet snips into that reallocated space, and * the data of all following packet snips into that reallocated space, and
* removes the packet snip the data was copied from afterwards. * removes the packet snip the data was copied from afterwards.
* *
* Example: * ### Example
* Input: * #### Input
* buffer *
* +---------------------------+ +------+ * buffer
* | size = 8 | data +-------->| | * +---------------------------+ +------+
* | type = NETTYPE_IPV6 |------------+ +------+ * | size = 8 | data +-------->| |
* +---------------------------+ . . * | type = NETTYPE_IPV6 |------------+ +------+
* | next . . * +---------------------------+ . .
* v . . * | next . .
* +---------------------------+ +------+ * v . .
* | size = 40 | data +----------->| | * +---------------------------+ +------+
* | type = NETTYPE_UDP |---------+ +------+ * | size = 40 | data +----------->| |
* +---------------------------+ . . * | type = NETTYPE_UDP |---------+ +------+
* | next . . * +---------------------------+ . .
* v * | next . .
* +---------------------------+ +------+ * v
* | size = 14 | data +-------------->| | * +---------------------------+ +------+
* | type = NETTYPE_UNDEF |------+ +------+ * | size = 14 | data +-------------->| |
* +---------------------------+ . . * | type = NETTYPE_UNDEF |------+ +------+
* * +---------------------------+ . .
* *
* Output: *
* buffer * #### Output
* +---------------------------+ +------+ *
* | size = 62 | data +-------->| | * buffer
* | type = NETTYPE_IPV6 |------------+ | | * +---------------------------+ +------+
* +---------------------------+ | | * | size = 62 | data +-------->| |
* | | * | type = NETTYPE_IPV6 |------------+ | |
* +------+ * +---------------------------+ | |
* | |
* | |
* | |
* +------+
* . . * . .
* *
* @warning @p pkt needs to write protected before calling this function. * @warning @p pkt needs to write protected before calling this function.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment