PoolStringArray HTTPClient::_get_response_headers() { List<String> rh; get_response_headers(&rh); PoolStringArray ret; ret.resize(rh.size()); int idx = 0; for (const List<String>::Element *E = rh.front(); E; E = E->next()) { ret.set(idx++, E->get()); } return ret; }
PoolStringArray ConfigFile::_get_section_keys(const String &p_section) const { List<String> s; get_section_keys(p_section, &s); PoolStringArray arr; arr.resize(s.size()); int idx = 0; for (const List<String>::Element *E = s.front(); E; E = E->next()) { arr.set(idx++, E->get()); } return arr; }
PoolStringArray mono_array_to_PoolStringArray(MonoArray *p_array) { PoolStringArray ret; if (!p_array) return ret; int length = mono_array_length(p_array); ret.resize(length); for (int i = 0; i < length; i++) { MonoString *elem = mono_array_get(p_array, MonoString *, i); ret.set(i, mono_string_to_godot(elem)); } return ret; }