Searched refs:new_string (Results 1 – 3 of 3) sorted by relevance
34 char* new_string = static_cast<char*>( in osi_strdup() local36 if (!new_string) return NULL; in osi_strdup()38 memcpy(new_string, str, size); in osi_strdup()39 return new_string; in osi_strdup()50 char* new_string = static_cast<char*>( in osi_strndup() local52 if (!new_string) return NULL; in osi_strndup()54 memcpy(new_string, str, size); in osi_strndup()55 new_string[size] = '\0'; in osi_strndup()56 return new_string; in osi_strndup()
81 let class_name_jobject = *self.env.new_string(class_name)?; in find_local_class()
283 let env_class_name = *env.new_string(class_name).map_err(|e| { in find_local_class()982 let env_chip_id_jobject = *self.env.new_string(&self.chip_id).unwrap(); in on_core_notification()