FastLED 3.9.15
Loading...
Searching...
No Matches

◆ copy()

bool fl::StringHolder::copy ( const char * str,
size len )
inline

Definition at line 26 of file string_holder.h.

26 {
27 if ((len + 1) > mCapacity) {
28 return false;
29 }
30 memcpy(mData, str, len);
31 mData[len] = '\0';
32 mLength = len;
33 return true;
34 }
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT

References FL_NOEXCEPT, mCapacity, mData, fl::memcpy(), and mLength.

+ Here is the call graph for this function: