MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / copy_from_unchecked

Method copy_from_unchecked

core/string/ustring.cpp:207–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void String::copy_from_unchecked(const char32_t *p_char, const int p_length) {
208 resize_uninitialized(p_length + 1); // + 1 for \0
209 char32_t *dst = ptrw();
210 memcpy(dst, p_char, p_length * sizeof(char32_t));
211 *(dst + p_length) = _null;
212}
213
214String String::operator+(const String &p_str) const {
215 String res = *this;

Callers 3

substrMethod · 0.80
leftMethod · 0.80
rightMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected