Module nstd_core::mem[][src]

Functions

Copies bytes from other to copycat. Parameters: NSTDByte *const copycat - Pointer to memory to be copied to. const NSTDByte *const other - Pointer to memory to be copied from. const NSTDUSize size - Number of bytes to copy.

Fills a block of memory with byte. Parameters: NSTDByte *const ptr - Pointer to block of memory. const NSTDUSize size - Size of block. const NSTDByte byte - Byte to fill with.

Moves bytes from from to to. Zeroes out from’s memory. Parameters: NSTDByte *const from - Memory to be moved from. NSTDByte *const to - Memory to be moved to. const NSTDUSize size - Number of bytes to move.

Moves memory from *ptr1 to *ptr2 and vice versa. Parameters: void *const ptr1 - First pointer to memory to swap. void *const ptr2 - Second pointer to memory to swap. const NSTDUSize size - Number of bytes to swap.

Zeros a memory range pointed to by ptr. Parameters: NSTDByte *const ptr - Pointer to memory to be zeroed. NSTDUSize start - Starting index of memory to be zeroed. const NSTDUSize end - Ending index of memory to be zeroed. (Excluded).