FastLED 3.9.15
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 88 of file asset.h.

89 : mPath(path), mLength(length) {}
fl::string_view path() const FL_NOEXCEPT
The relative asset path as a string view (e.g. "data/track.mp3").
Definition asset.h:106
const char * mPath
Definition asset.h:115
fl::size mLength
Definition asset.h:116
fl::UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)

References FL_NOEXCEPT, 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: