FastLED 3.10.8
Loading...
Searching...
No Matches

◆ asset_ref() [1/3]

fl::asset_ref::asset_ref ( const char * path,
fl::size length )
inlineconstexpr

Construct from a pointer to a null-terminated string with known length.

The pointer MUST outlive the asset_ref — typically a string literal.

Definition at line 90 of file asset.h.

91 : mPath(path), mLength(length) {}
const char * mPath
Definition asset.h:117
fl::string_view path() const FL_NO_EXCEPT
The relative asset path as a string view (e.g. "data/track.mp3").
Definition asset.h:108
fl::size mLength
Definition asset.h:118
fl::UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)

References fl::FL_NO_EXCEPT, length(), and path().

Referenced by asset_ref(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: