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

◆ StringHolder() [3/4]

fl::StringHolder::StringHolder ( const char * str,
size length )

Definition at line 67 of file string_holder.cpp.hpp.

68 : mData((char*)fl::malloc(length + 1))
70 , mCapacity(length + 1) {
71 if (mData == nullptr) {
72 mLength = 0;
73 mCapacity = 0;
74 return;
75 }
77 mData[mLength] = '\0';
78}
size length() const FL_NO_EXCEPT
FASTLED_FORCE_INLINE void * malloc(size_t size) FL_NO_EXCEPT
Definition malloc.h:21
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, length(), fl::malloc(), mCapacity, mData, fl::memcpy(), and mLength.

+ Here is the call graph for this function: