![]() |
DDraceNetwork Documentation
|
Functions | |
| void | mem_copy (void *dest, const void *source, size_t size) |
| void | mem_move (void *dest, const void *source, size_t size) |
| template<typename T > | |
| void | mem_zero (T *block, size_t size) |
| int | mem_comp (const void *a, const void *b, size_t size) |
| bool | mem_has_null (const void *block, size_t size) |
Memory management utilities.
Compares two blocks of memory
| a | First block of data. |
| b | Second block of data. |
| size | Size of the data to compare. |
< 0 if block a is less than block b. 0 if block a is equal to block b. > 0 if block a is greater than block b. Copies a a memory block.
| dest | Destination. |
| source | Source to copy. |
| size | Size of the block to copy. |
Checks whether a block of memory contains null bytes.
| block | Pointer to the block to check for nulls. |
| size | Size of the block. |
true if the block has a null byte, false otherwise. Copies a a memory block.
| dest | Destination. |
| source | Source to copy. |
| size | Size of the block to copy. |