Lines Matching refs:dest
90 bool HRilBase::ConvertToString(char **dest, const std::string &srcStr) in ConvertToString() argument
92 if (dest == nullptr) { in ConvertToString()
98 *dest = nullptr; in ConvertToString()
106 *dest = (char *)calloc(len, sizeof(char)); in ConvertToString()
107 if (*dest == nullptr) { in ConvertToString()
111 if (strncpy_s(*dest, len, reinterpret_cast<const char *>(srcStr.c_str()), size) != EOK) { in ConvertToString()
117 void HRilBase::CopyToCharPoint(char **dest, const std::string &src) in CopyToCharPoint() argument
124 *dest = (char *)malloc((size + 1) * sizeof(char)); in CopyToCharPoint()
125 if (*dest == nullptr) { in CopyToCharPoint()
129 if (memset_s(*dest, size + 1, 0, size + 1) != EOK) { in CopyToCharPoint()
131 SafeFrees(*dest); in CopyToCharPoint()
134 if (strcpy_s(*dest, size + 1, src.c_str()) != EOK) { in CopyToCharPoint()
136 SafeFrees(*dest); in CopyToCharPoint()