Lines Matching defs: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
48 * count <= destMax destMax != 0 and destMax <= SECUREC_WCHAR_MEM_MAX_LEN
51 * if an error occurred, dest will be filled with 0 when dest and destMax valid .
55 errno_t wmemcpy_s(wchar_t *dest, size_t destMax, const wchar_t *src, size_t count)
57 if (destMax == 0 || destMax > SECUREC_WCHAR_MEM_MAX_LEN) {
61 if (count > destMax) {
64 (void)SECUREC_MEMSET_FUNC_OPT(dest, 0, destMax * sizeof(wchar_t));
69 return memcpy_s(dest, destMax * sizeof(wchar_t), src, count * sizeof(wchar_t));