Lines Matching refs:destMax
29 * destMax Size of the destination buffer.
38 * EINVAL dest is NULL and destMax != 0 and count <= destMax
39 * and destMax <= SECUREC_WCHAR_MEM_MAX_LEN
40 * EINVAL_AND_RESET dest != NULL and src is NULL and destMax != 0
41 * and destMax <= SECUREC_WCHAR_MEM_MAX_LEN and count <= destMax
42 * ERANGE destMax > SECUREC_WCHAR_MEM_MAX_LEN or destMax is 0 or
43 * (count > destMax and dest is NULL and destMax != 0
44 * and destMax <= SECUREC_WCHAR_MEM_MAX_LEN)
45 * ERANGE_AND_RESET count > destMax and dest != NULL and destMax != 0
46 * and destMax <= SECUREC_WCHAR_MEM_MAX_LEN
49 * If an error occurred, dest will be filled with 0 when dest and destMax valid.
54 errno_t wmemmove_s(wchar_t *dest, size_t destMax, const wchar_t *src, size_t count)
56 if (destMax == 0 || destMax > SECUREC_WCHAR_MEM_MAX_LEN) {
60 if (count > destMax) {
63 (void)SECUREC_MEMSET_FUNC_OPT(dest, 0, destMax * sizeof(wchar_t));
68 return memmove_s(dest, destMax * sizeof(wchar_t), src, count * sizeof(wchar_t));