32 #include "safeclib_private.h" 33 #include "safe_mem_constraint.h" 34 #include "mem_primitives_lib.h" 35 #include "safe_mem_lib.h" 79 memmove16_s (uint16_t *dest, rsize_t dmax,
const uint16_t *src, rsize_t smax)
90 return (RCNEGATE(ESNULLP));
96 return (RCNEGATE(ESZEROL));
99 if (dmax > RSIZE_MAX_MEM16 || smax > RSIZE_MAX_MEM16) {
102 return (RCNEGATE(ESLEMAX));
109 return (RCNEGATE(ESZEROL));
116 return (RCNEGATE(ESNOSPC));
123 return (RCNEGATE(ESNULLP));
132 return (RCNEGATE(EOK));
errno_t memmove16_s(uint16_t *dest, rsize_t dmax, const uint16_t *src, rsize_t smax)
The memmove16_s function copies smax uint16_t from the region pointed to by src into the region point...
void mem_prim_set16(uint16_t *dest, uint32_t len, uint16_t value)
Sets len uint16_t's starting at dest to the specified value.
void invoke_safe_mem_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.
void mem_prim_move16(uint16_t *dest, const uint16_t *src, uint32_t len)
Moves at most len uint16_t's from src to dest.