|
cbase 1.46.11
C/C++ Static Template
|
Wrappers around string.h functions that force sizeof() safety. More...
Macros | |
| #define | MEM_ZERO(ptr, size) |
| Wraps memset to explicitly write 0s to a block of memory. | |
| #define | MEM_ZERO_STRUCT(ptr) |
| Zeroes out a struct securely using the pointer's inner type size. | |
| #define | MEM_ZERO_ARRAY(arr) |
| Zeroes out a static array securely using the array's full size. | |
| #define | MEM_COPY(dst, src, size) |
| Wraps memmove for standard memory copying. | |
| #define | MEM_COPY_STRUCT(dst, src) |
| Safely copies data from one struct pointer to another. | |
| #define | MEM_COPY_ARRAY(dst, src) |
| Safely copies data from one static array to another. | |
Wrappers around string.h functions that force sizeof() safety.
| #define MEM_COPY | ( | dst, | |
| src, | |||
| size ) |
Wraps memmove for standard memory copying.
Definition at line 410 of file base_macros.h.
| #define MEM_COPY_ARRAY | ( | dst, | |
| src ) |
Safely copies data from one static array to another.
| dst | Destination array. |
| src | Source array. |
Definition at line 426 of file base_macros.h.
| #define MEM_COPY_STRUCT | ( | dst, | |
| src ) |
Safely copies data from one struct pointer to another.
| dst | Pointer to the destination struct. |
| src | Pointer to the source struct. |
Definition at line 418 of file base_macros.h.
| #define MEM_ZERO | ( | ptr, | |
| size ) |
Wraps memset to explicitly write 0s to a block of memory.
Definition at line 395 of file base_macros.h.
| #define MEM_ZERO_ARRAY | ( | arr | ) |
Zeroes out a static array securely using the array's full size.
| arr | The statically allocated array. |
Definition at line 407 of file base_macros.h.
| #define MEM_ZERO_STRUCT | ( | ptr | ) |
Zeroes out a struct securely using the pointer's inner type size.
| ptr | Pointer to the struct. |
Definition at line 401 of file base_macros.h.