MCPcopy Create free account
hub / github.com/FastLED/FastLED / format_pointer

Function format_pointer

src/fl/stl/format.h:273–281  ·  view source on GitHub ↗

Format a pointer

Source from the content-addressed store, hash-verified

271
272// Format a pointer
273inline fl::string format_pointer(const void* ptr, const FormatSpec& spec) {
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}
282
283// Format a string value
284inline fl::string format_string(const char* value, const FormatSpec& spec) {

Callers 1

formatMethod · 0.85

Calls 2

ptr_to_intFunction · 0.85
format_integerFunction · 0.85

Tested by

no test coverage detected