#pragma once /** * This function copies size number of bytes from a * memory location pointed by src to a destination * memory location pointed by dest * * @param[in] dest Destination address * @param[in] src Source address * @param[in] size size in the bytes * * @return Address of the destination */ extern void* Osal_MemCpy(void* dest, const void* src, unsigned int size); /** * This function sets first number of bytes, specified * by size, to the destination memory pointed by ptr * to the specified value * * @param[in] ptr Destination address * @param[in] value Value to be set * @param[in] size Size in the bytes * * @return Address of the destination */ extern void* Osal_MemSet(void* ptr, int value, unsigned int size); /** * This function compares n bytes of two regions of memory * * @param[in] s1 First buffer to compare. * @param[in] s2 Second buffer to compare. * @param[in] size Number of bytes to compare. * * @return 0 if the two buffers are equal, 1 otherwise */ extern int Osal_MemCmp(const void* s1, const void* s2, unsigned int size);