Skip to content

kernel/os_mbuf: Add new helpers#3542

Draft
m-gorecki wants to merge 1 commit intoapache:masterfrom
m-gorecki:mbuf_api
Draft

kernel/os_mbuf: Add new helpers#3542
m-gorecki wants to merge 1 commit intoapache:masterfrom
m-gorecki:mbuf_api

Conversation

@m-gorecki
Copy link
Contributor

This adds new helpers to append and consume mbuf data in a more convinient way

This adds new helpers to append and consume mbuf data in a more
convinient way
* @return 0 on success;
* -1 if the mbuf does not contain enough data.
*/
int os_mbuf_consume_data(struct os_mbuf *om, int len, void *dst);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name this (and others) _pull

len could be size_t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments