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

◆ format_pointer()

fl::string fl::format_detail::format_pointer ( const void * ptr,
const FormatSpec & spec )
inline

Definition at line 273 of file format.h.

273 {
274 fl::uptr addr = fl::ptr_to_int(const_cast<void*>(ptr));
275
276 FormatSpec hex_spec = spec;
277 hex_spec.type = 'x';
278 hex_spec.alternate = true;
279
280 return format_integer(addr, hex_spec);
281}
fl::string format_integer(T value, const FormatSpec &spec)
Definition format.h:165
uptr ptr_to_int(T *ptr) FL_NOEXCEPT
Definition bit_cast.h:71

References fl::format_detail::FormatSpec::alternate, format_integer(), fl::ptr_to_int(), and fl::format_detail::FormatSpec::type.

Referenced by fl::format_detail::FormatArg::format().

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