mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 17:55:22 +00:00
A very common pattern in code goes something like the following: memcpy(net_buf_add(buf, len), data, len); To avoid having to create this kind of complex constructions every time, this patch adds a new API which simplifies the call: net_buf_add_mem(buf, data, len); Change-Id: Ic1aeae4baf88b2295d139f672d5d265db2ddbe7b Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
---|---|---|
.known-issues | ||
arch | ||
boards | ||
doc | ||
drivers | ||
ext | ||
include | ||
kernel | ||
lib | ||
misc | ||
samples | ||
scripts | ||
subsys | ||
tests | ||
.checkpatch.conf | ||
.gitattributes | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
defaults.tc | ||
Kbuild | ||
Kconfig | ||
Kconfig.zephyr | ||
LICENSE | ||
LICENSING.rst | ||
MAINTAINERS | ||
Makefile | ||
Makefile.inc | ||
release-notes.rst | ||
zephyr-env.sh |