FastLED 3.10.10
Loading...
Searching...
No Matches

◆ copy()

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

Definition at line 31 of file string_holder.h.

31 {
32 if ((len + 1) > mCapacity) {
33 return false;
34 }
35 memcpy(mData, str, len);
36 mData[len] = '\0';
37 mLength = len;
38 return true;
39 }
FASTLED_FORCE_INLINE void * memcpy(void *dest, const void *src, size_t n) FL_NO_EXCEPT
Definition cstring.h:136

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

+ Here is the call graph for this function: