|
Files |
file | otMemory.h |
| Memory Library.
|
Modules |
| Version History |
Functions |
void * | _memcpy (void *destination, const void *source, U32 num) |
| Copy block of memory Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination. The underlying type of the objects pointed to by both the source and destination pointers are irrelevant for this function; The result is a binary copy of the data. The function does not check for any terminating null character in source - it always copies exactly num bytes. To avoid overflows, the size of the arrays pointed to by both the destination and source parameters, shall be at least num bytes, and should not overlap (for overlapping memory blocks, _memmove is a safer approach).
|
void * | _memset (void *destination, int val, U32 num) |
| Fill block of memory Sets the first num bytes of the block of memory pointed by destination to the specified value (interpreted as an unsigned char).
|
void * | _memmove (void *destination, const void *source, U32 num) |
| Move block of memory Copies the values of num bytes from the location pointed by source to the memory block pointed by destination. Copying takes place as if an intermediate buffer were used, allowing the destination and source to overlap. The underlying type of the objects pointed by both the source and destination pointers are irrelevant for this function; The result is a binary copy of the data. The function does not check for any terminating null character in source - it always copies exactly num bytes. To avoid overflows, the size of the arrays pointed by both the destination and source parameters, shall be at least num bytes.
|
int | _memcmp (const void *ptr1, const void *ptr2, U32 num) |
| Compare two blocks of memory Compares the first num bytes of the block of memory pointed by ptr1 to the first num bytes pointed by ptr2, returning zero if they all match or a value different from zero representing which is greater if they do not. Notice that, unlike _strcmp, the function does not stop comparing after finding a null character.
|