Lines Matching refs:dest
82 bool HRilBase::ConvertToString(char **dest, const std::string &srcStr) in ConvertToString() argument
84 if (dest == nullptr) { in ConvertToString()
90 *dest = nullptr; in ConvertToString()
98 *dest = (char *)calloc(len, sizeof(char)); in ConvertToString()
99 if (*dest == nullptr) { in ConvertToString()
103 if (strncpy_s(*dest, len, reinterpret_cast<const char *>(srcStr.c_str()), size) != EOK) { in ConvertToString()
109 void HRilBase::CopyToCharPoint(char **dest, const std::string &src) in CopyToCharPoint() argument
116 *dest = (char *)malloc((size + 1) * sizeof(char)); in CopyToCharPoint()
117 if (*dest == nullptr) { in CopyToCharPoint()
121 if (memset_s(*dest, size + 1, 0, size + 1) != EOK) { in CopyToCharPoint()
123 SafeFrees(*dest); in CopyToCharPoint()
126 if (strcpy_s(*dest, size + 1, src.c_str()) != EOK) { in CopyToCharPoint()
128 SafeFrees(*dest); in CopyToCharPoint()