sys_mem_swap() function
Swap buffer content In-place memory swap, where final content will be reversed. I.e.: buf[n] will be put in buf[end-n] Where n is an index and 'end' the last index of buf.
Syntax
static inline void sys_mem_swap(void *buf,
size_t length);
Arguments
buf
A valid pointer on a memory area to swap
length
Size of buf memory area
![]()
static inline void sys_mem_swap(void *buf, size_t length)
sys_mem_swap() is called by 2 functions:
![]()
sys_mem_swap()
sys_mem_swap():
![]()
sys_mem_swap()