Embedded TCP/IP stack  4.7.0

◆ fnet_memcpy_func()

void* fnet_memcpy_func ( void *  to_buf_ptr,
const void *  from_func_ptr,
fnet_size_t  to_buf_size 
)

Relocates function in memory.

Parameters
to_buf_ptrPointer to the memory location to copy to.
from_func_ptrPointer to the function to be relocated
to_buf_sizeNumber of bytes to copy.
Returns
This function returns new pointer to the relocated function.

This function copies to_buf_size bytes from memory area pointed by from_func_ptr to memory area pointed by to_buf_ptr.
It is used for a function relocation from Flash to RAM.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net